Home
last modified time | relevance | path

Searched refs:guest_mode (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/kvm/include/
H A Dguest_modes.h7 struct guest_mode { struct
12 extern struct guest_mode guest_modes[NUM_VM_MODES]; argument
15 guest_modes[mode] = (struct guest_mode){ (enabled), (enabled) }; \
/linux/arch/x86/kvm/
H A Dtrace.h1656 TP_PROTO(u64 processor_mask, u64 address_space, u64 flags, bool guest_mode),
1657 TP_ARGS(processor_mask, address_space, flags, guest_mode),
1663 __field(bool, guest_mode)
1670 __entry->guest_mode = guest_mode;
1675 __entry->flags, __entry->guest_mode ? "(L2)" : "")
1682 TP_PROTO(u64 valid_bank_mask, u64 format, u64 address_space, u64 flags, bool guest_mode),
1683 TP_ARGS(valid_bank_mask, format, address_space, flags, guest_mode),
1690 __field(bool, guest_mode)
1698 __entry->guest_mode = guest_mode;
1705 __entry->guest_mode ? "(L2)" : "")
H A Dkvm_cache_regs.h229 vcpu->stat.guest_mode = 1; in enter_guest_mode()
241 vcpu->stat.guest_mode = 0; in leave_guest_mode()
H A Ddebugfs.c27 *val = vcpu->stat.guest_mode; in vcpu_get_guest_mode()
H A Dx86.c308 STATS_DESC_IBOOLEAN(VCPU, guest_mode),
/linux/tools/testing/selftests/kvm/lib/
H A Dguest_modes.c12 struct guest_mode guest_modes[NUM_VM_MODES];
/linux/drivers/iommu/amd/
H A Damd_iommu_types.h996 guest_mode : 1, member
1010 guest_mode : 1, member
H A Diommu.c3615 if (!irte->lo.fields_remap.guest_mode) { in irte_ga_set_affinity()
4003 if (!entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_update_ga()
4034 entry->lo.fields_vapic.guest_mode = 1; in amd_iommu_activate_guest_mode()
4056 if (!entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_deactivate_guest_mode()
/linux/arch/x86/kvm/mmu/
H A Dmmu_internal.h194 return kvm->arch.cpu_dirty_log_size && sp->role.guest_mode; in kvm_mmu_page_ad_need_write_protect()
H A Dmmu.c2635 child->role.guest_mode && in mmu_page_zap_pte()
3905 WARN_ON_ONCE(mmu->root_role.guest_mode); in kvm_mmu_free_guest_mode_roots()
3913 if (!sp || sp->role.guest_mode) in kvm_mmu_free_guest_mode_roots()
5726 role.base.guest_mode = is_guest_mode(vcpu); in kvm_calc_cpu_role()
5809 role.guest_mode = cpu_role.base.guest_mode; in kvm_calc_tdp_mmu_root_page_role()
5907 WARN_ON_ONCE(cpu_role.base.direct || !cpu_role.base.guest_mode); in kvm_init_shadow_npt_mmu()
5935 role.base.guest_mode = true; in kvm_calc_shadow_ept_root_page_role()
7174 if (WARN_ON_ONCE(!sp->role.guest_mode)) in shadow_mmu_try_split_huge_pages()
/linux/arch/x86/include/asm/
H A Dkvm_host.h366 unsigned guest_mode:1; member
1728 u64 guest_mode; member
/linux/arch/x86/kvm/vmx/
H A Dvmx.c8435 vmx->nested.smm.guest_mode = is_guest_mode(vcpu); in vmx_enter_smm()
8436 if (vmx->nested.smm.guest_mode) in vmx_enter_smm()
8455 if (vmx->nested.smm.guest_mode) { in vmx_leave_smm()
8465 vmx->nested.smm.guest_mode = false; in vmx_leave_smm()
H A Dnested.c6772 if (vmx->nested.smm.guest_mode) in vmx_get_nested_state()
6998 vmx->nested.smm.guest_mode = true; in vmx_set_nested_state()
/linux/Documentation/virt/kvm/x86/
H A Dmmu.rst205 role.guest_mode: