Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/arch/x86/kvm/
H A Dtrace.h1580 TP_PROTO(u64 processor_mask, u64 address_space, u64 flags, bool guest_mode),
1581 TP_ARGS(processor_mask, address_space, flags, guest_mode),
1587 __field(bool, guest_mode)
1594 __entry->guest_mode = guest_mode;
1599 __entry->flags, __entry->guest_mode ? "(L2)" : "")
1606 TP_PROTO(u64 valid_bank_mask, u64 format, u64 address_space, u64 flags, bool guest_mode),
1607 TP_ARGS(valid_bank_mask, format, address_space, flags, guest_mode),
1614 __field(bool, guest_mode)
1622 __entry->guest_mode = guest_mode;
1629 __entry->guest_mode ? "(L2)" : "")
H A Dkvm_cache_regs.h228 vcpu->stat.guest_mode = 1; in enter_guest_mode()
240 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.c290 STATS_DESC_IBOOLEAN(VCPU, guest_mode),
/linux-6.15/tools/testing/selftests/kvm/lib/
H A Dguest_modes.c12 struct guest_mode guest_modes[NUM_VM_MODES];
/linux-6.15/drivers/iommu/amd/
H A Damd_iommu_types.h1016 guest_mode : 1, member
1030 guest_mode : 1, member
H A Diommu.c3459 if (!irte->lo.fields_remap.guest_mode) { in irte_ga_set_affinity()
3822 entry->lo.fields_vapic.guest_mode = 1; in amd_iommu_activate_guest_mode()
3841 !entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_deactivate_guest_mode()
4005 !entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_update_ga()
/linux-6.15/arch/x86/kvm/mmu/
H A Dmmu_internal.h200 return kvm_x86_ops.cpu_dirty_log_size && sp->role.guest_mode; in kvm_mmu_page_ad_need_write_protect()
H A Dmmu.c2591 child->role.guest_mode && in mmu_page_zap_pte()
3797 WARN_ON_ONCE(mmu->root_role.guest_mode); in kvm_mmu_free_guest_mode_roots()
3805 if (!sp || sp->role.guest_mode) in kvm_mmu_free_guest_mode_roots()
5542 role.base.guest_mode = is_guest_mode(vcpu); in kvm_calc_cpu_role()
5618 role.guest_mode = cpu_role.base.guest_mode; in kvm_calc_tdp_mmu_root_page_role()
5716 WARN_ON_ONCE(cpu_role.base.direct || !cpu_role.base.guest_mode); in kvm_init_shadow_npt_mmu()
5744 role.base.guest_mode = true; in kvm_calc_shadow_ept_root_page_role()
6975 if (WARN_ON_ONCE(!sp->role.guest_mode)) in shadow_mmu_try_split_huge_pages()
/linux-6.15/arch/x86/kvm/vmx/
H A Dvmx.h239 bool guest_mode; member
H A Dvmx.c8317 vmx->nested.smm.guest_mode = is_guest_mode(vcpu); in vmx_enter_smm()
8318 if (vmx->nested.smm.guest_mode) in vmx_enter_smm()
8337 if (vmx->nested.smm.guest_mode) { in vmx_leave_smm()
8343 vmx->nested.smm.guest_mode = false; in vmx_leave_smm()
H A Dnested.c6669 if (vmx->nested.smm.guest_mode) in vmx_get_nested_state()
6874 vmx->nested.smm.guest_mode = true; in vmx_set_nested_state()
/linux-6.15/arch/x86/include/asm/
H A Dkvm_host.h353 unsigned guest_mode:1; member
1632 u64 guest_mode; member
/linux-6.15/Documentation/virt/kvm/x86/
H A Dmmu.rst205 role.guest_mode: