Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Damd-iommu.h22 bool is_guest_mode; member
/Linux-v5.10/arch/x86/kvm/
Dirq.c79 if (!is_guest_mode(v) && kvm_vcpu_apicv_active(v)) in kvm_cpu_has_injectable_intr()
Dkvm_cache_regs.h172 static inline bool is_guest_mode(struct kvm_vcpu *vcpu) in is_guest_mode() function
Dx86.c558 if (!is_guest_mode(vcpu)) in kvm_multiple_exception()
634 is_guest_mode(vcpu) && fault->async_page_fault; in kvm_inject_page_fault()
7008 if (!is_guest_mode(vcpu) && kvm_x86_ops.get_cpl(vcpu) == 0) { in handle_emulation_failure()
7028 if (WARN_ON_ONCE(is_guest_mode(vcpu)) || in reexecute_instruction()
7120 if (WARN_ON_ONCE(is_guest_mode(vcpu)) || in retry_instruction()
8240 if (is_guest_mode(vcpu)) { in inject_pending_event()
8323 if (is_guest_mode(vcpu) && in inject_pending_event()
8687 if (is_guest_mode(vcpu)) in vcpu_scan_ioapic()
9075 if (is_guest_mode(vcpu)) in kvm_vcpu_running()
10674 return (is_guest_mode(vcpu) && in kvm_guest_apic_has_interrupt()
[all …]
/Linux-v5.10/arch/x86/kvm/vmx/
Dvmx.c838 if (is_guest_mode(vcpu)) in update_exception_bitmap()
1614 if (!is_guest_mode(vcpu)) in vmx_update_emulated_instruction()
1746 if (is_guest_mode(vcpu) && in vmx_write_l1_tsc_offset()
1983 if (is_guest_mode(vcpu)) in vmx_set_msr()
1988 if (is_guest_mode(vcpu)) { in vmx_set_msr()
1995 if (is_guest_mode(vcpu)) { in vmx_set_msr()
2002 if (is_guest_mode(vcpu) && get_vmcs12(vcpu)->vm_exit_controls & in vmx_set_msr()
2095 if (is_guest_mode(vcpu) && in vmx_set_msr()
2919 else if (!is_guest_mode(vcpu)) in vmx_flush_tlb_current()
3056 (!is_guest_mode(vcpu) || nested_ept_ad_enabled(vcpu))) in construct_eptp()
[all …]
Dnested.h65 return is_guest_mode(vcpu) || vmx->nested.current_vmptr != -1ull || in vmx_has_valid_vmcs12()
Dnested.c432 WARN_ON(!is_guest_mode(vcpu)); in vmx_inject_page_fault_nested()
3232 if (WARN_ON_ONCE(!is_guest_mode(vcpu))) in nested_vmx_write_pml_buffer()
4970 struct vmcs12 *vmcs12 = is_guest_mode(vcpu) ? get_shadow_vmcs12(vcpu) in handle_vmread()
4990 (is_guest_mode(vcpu) && in handle_vmread()
5001 if (!is_guest_mode(vcpu) && is_vmcs12_ext_field(field)) in handle_vmread()
5054 struct vmcs12 *vmcs12 = is_guest_mode(vcpu) ? get_shadow_vmcs12(vcpu) in handle_vmwrite()
5082 (is_guest_mode(vcpu) && in handle_vmwrite()
5116 if (!is_guest_mode(vcpu) && !is_shadow_field_rw(field)) in handle_vmwrite()
5138 if (!is_guest_mode(vcpu) && !is_shadow_field_rw(field)) { in handle_vmwrite()
5495 if (!is_guest_mode(vcpu)) { in handle_vmfunc()
[all …]
Dvmx.h481 return enable_unrestricted_guest && (!is_guest_mode(vcpu) || in is_unrestricted_guest()
/Linux-v5.10/arch/x86/kvm/svm/
Dsvm.h219 if (is_guest_mode(&svm->vcpu)) in get_host_vmcb()
379 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr()
Davic.c847 pi.is_guest_mode = true; in svm_update_pi_irte()
858 if (!ret && pi.is_guest_mode) in svm_update_pi_irte()
870 pi.is_guest_mode = false; in svm_update_pi_irte()
Dsvm.c620 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
1070 if (is_guest_mode(vcpu)) { in svm_write_l1_tsc_offset()
1488 if (is_guest_mode(&svm->vcpu)) { in svm_clear_vintr()
2321 if (!is_guest_mode(&svm->vcpu) || in check_selective_cr0_intercepted()
3076 if (is_guest_mode(vcpu)) { in handle_exit()
3207 if (is_guest_mode(vcpu) && nested_exit_on_nmi(svm)) in svm_nmi_blocked()
3223 if (for_injection && is_guest_mode(vcpu) && nested_exit_on_nmi(svm)) in svm_nmi_allowed()
3257 if (is_guest_mode(vcpu)) { in svm_interrupt_blocked()
3285 if (for_injection && is_guest_mode(vcpu) && nested_exit_on_intr(svm)) in svm_interrupt_allowed()
3638 if (is_guest_mode(&svm->vcpu)) { in svm_vcpu_run()
[all …]
Dnested.c105 if (!is_guest_mode(&svm->vcpu)) in recalc_intercepts()
748 if (is_guest_mode(&svm->vcpu)) { in svm_leave_nested()
1074 if (is_guest_mode(vcpu)) { in svm_get_nested_state()
1089 if (!is_guest_mode(vcpu)) in svm_get_nested_state()
/Linux-v5.10/arch/x86/kvm/mmu/
Dmmu.c3653 if (is_guest_mode(vcpu) && !kvm_is_visible_memslot(slot)) { in try_async_pf()
4449 role.base.guest_mode = is_guest_mode(vcpu); in kvm_calc_mmu_role_common()
5094 if (!mmio_info_in_cache(vcpu, cr2_or_gpa, direct) && !is_guest_mode(vcpu)) in kvm_mmu_page_fault()
/Linux-v5.10/drivers/iommu/amd/
Diommu.c3986 pi_data->is_guest_mode = false; in amd_ir_set_vcpu_affinity()
3994 if (pi_data->is_guest_mode) { in amd_ir_set_vcpu_affinity()