Home
last modified time | relevance | path

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

/openbmc/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){ supported, enabled }; \
/openbmc/qemu/hw/i386/
H A Damd_iommu.h260 guest_mode:1, member
280 guest_mode:1, member
H A Damd_iommu.c1110 if (irte.fields.guest_mode) { in amdvi_int_remap_legacy()
1169 if (irte.lo.fields_remap.guest_mode) { in amdvi_int_remap_ga()
/openbmc/linux/arch/x86/kvm/
H A Dtrace.h1553 TP_PROTO(u64 processor_mask, u64 address_space, u64 flags, bool guest_mode),
1554 TP_ARGS(processor_mask, address_space, flags, guest_mode),
1560 __field(bool, guest_mode)
1567 __entry->guest_mode = guest_mode;
1572 __entry->flags, __entry->guest_mode ? "(L2)" : "")
1579 TP_PROTO(u64 valid_bank_mask, u64 format, u64 address_space, u64 flags, bool guest_mode),
1580 TP_ARGS(valid_bank_mask, format, address_space, flags, guest_mode),
1587 __field(bool, guest_mode)
1595 __entry->guest_mode = guest_mode;
1602 __entry->guest_mode ? "(L2)" : "")
H A Dkvm_cache_regs.h211 vcpu->stat.guest_mode = 1; in enter_guest_mode()
223 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.c304 STATS_DESC_IBOOLEAN(VCPU, guest_mode),
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dguest_modes.c12 struct guest_mode guest_modes[NUM_VM_MODES];
/openbmc/linux/drivers/iommu/amd/
H A Damd_iommu_types.h973 guest_mode : 1, member
987 guest_mode : 1, member
H A Diommu.c3213 if (!irte->lo.fields_remap.guest_mode) { in irte_ga_set_affinity()
3562 entry->lo.fields_vapic.guest_mode = 1; in amd_iommu_activate_guest_mode()
3581 !entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_deactivate_guest_mode()
3765 !entry || !entry->lo.fields_vapic.guest_mode) in amd_iommu_update_ga()
/openbmc/linux/arch/x86/kvm/mmu/
H A Dmmu_internal.h157 return kvm_x86_ops.cpu_dirty_log_size && sp->role.guest_mode; in kvm_mmu_page_ad_need_write_protect()
H A Dmmu.c2507 child->role.guest_mode && !child->parent_ptes.val) in mmu_page_zap_pte()
3626 WARN_ON_ONCE(mmu->root_role.guest_mode); in kvm_mmu_free_guest_mode_roots()
3634 if (!sp || sp->role.guest_mode) in kvm_mmu_free_guest_mode_roots()
5123 role.base.guest_mode = is_guest_mode(vcpu); in kvm_calc_cpu_role()
5194 role.guest_mode = cpu_role.base.guest_mode; in kvm_calc_tdp_mmu_root_page_role()
5292 WARN_ON_ONCE(cpu_role.base.direct || !cpu_role.base.guest_mode); in kvm_init_shadow_npt_mmu()
5320 role.base.guest_mode = true; in kvm_calc_shadow_ept_root_page_role()
6473 if (WARN_ON_ONCE(!sp->role.guest_mode)) in shadow_mmu_try_split_huge_pages()
/openbmc/linux/arch/x86/kvm/vmx/
H A Dvmx.h241 bool guest_mode; member
H A Dvmx.c8173 vmx->nested.smm.guest_mode = is_guest_mode(vcpu); in vmx_enter_smm()
8174 if (vmx->nested.smm.guest_mode) in vmx_enter_smm()
8193 if (vmx->nested.smm.guest_mode) { in vmx_leave_smm()
8199 vmx->nested.smm.guest_mode = false; in vmx_leave_smm()
H A Dnested.c6503 if (vmx->nested.smm.guest_mode) in vmx_get_nested_state()
6706 vmx->nested.smm.guest_mode = true; in vmx_set_nested_state()
/openbmc/linux/arch/x86/include/asm/
H A Dkvm_host.h339 unsigned guest_mode:1; member
1524 u64 guest_mode; member