Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/kvm/
H A Dhyperv.h197 bool is_guest_mode) in kvm_hv_get_tlb_flush_fifo() argument
200 int i = is_guest_mode ? HV_L2_TLB_FLUSH_FIFO : in kvm_hv_get_tlb_flush_fifo()
213 tlb_flush_fifo = kvm_hv_get_tlb_flush_fifo(vcpu, is_guest_mode(vcpu)); in kvm_hv_vcpu_purge_flush_tlb()
H A Dirq.c87 if (!is_guest_mode(v) && kvm_vcpu_apicv_active(v)) in kvm_cpu_has_injectable_intr()
H A Dhyperv.c1974 tlb_flush_fifo = kvm_hv_get_tlb_flush_fifo(vcpu, is_guest_mode(vcpu)); in kvm_hv_vcpu_flush_tlb()
2037 if (!hc->fast && is_guest_mode(vcpu)) { in kvm_hv_flush_tlb()
2059 is_guest_mode(vcpu)); in kvm_hv_flush_tlb()
2090 flush_ex.flags, is_guest_mode(vcpu)); in kvm_hv_flush_tlb()
2134 if (all_cpus && !is_guest_mode(vcpu)) { in kvm_hv_flush_tlb()
2142 } else if (!is_guest_mode(vcpu)) { in kvm_hv_flush_tlb()
2384 if (hv_result_success(result) && is_guest_mode(vcpu) && in kvm_hv_hypercall_complete()
H A Dkvm_cache_regs.h243 static inline bool is_guest_mode(struct kvm_vcpu *vcpu) in is_guest_mode() function
H A Dkvm_emulate.h238 bool (*is_guest_mode)(struct x86_emulate_ctxt *ctxt); member
H A Dx86.c816 if (is_guest_mode(vcpu) && in kvm_multiple_exception()
833 if (!is_guest_mode(vcpu)) in kvm_multiple_exception()
2593 if (is_guest_mode(vcpu)) in kvm_vcpu_write_tsc_offset()
2609 if (is_guest_mode(vcpu)) in kvm_vcpu_write_tsc_multiplier()
10186 if (is_guest_mode(vcpu)) in post_kvm_run_save()
10296 if (is_guest_mode(vcpu)) in kvm_check_and_inject_events()
10464 if (is_guest_mode(vcpu) && in kvm_check_and_inject_events()
10675 if (is_guest_mode(vcpu)) in vcpu_scan_ioapic()
10793 if (is_guest_mode(vcpu)) in vcpu_enter_guest()
11176 if (is_guest_mode(vcpu) && in kvm_vcpu_has_events()
[all …]
H A Dsmm.c652 if (ret != X86EMUL_CONTINUE && is_guest_mode(vcpu)) in emulator_leave_smm()
H A Demulate.c5115 bool is_guest_mode = ctxt->ops->is_guest_mode(ctxt); in x86_emulate_insn() local
5163 if (unlikely(is_guest_mode) && ctxt->intercept) { in x86_emulate_insn()
5192 if (unlikely(is_guest_mode) && (ctxt->d & Intercept)) { in x86_emulate_insn()
5246 if (unlikely(is_guest_mode) && (ctxt->d & Intercept)) { in x86_emulate_insn()
H A Dlapic.c3367 if (is_guest_mode(vcpu)) { in kvm_apic_accept_events()
/linux-6.15/arch/x86/kvm/vmx/
H A Dvmx.c901 if (is_guest_mode(vcpu)) in vmx_update_exception_bitmap()
1788 if (!is_guest_mode(vcpu)) in vmx_update_emulated_instruction()
2245 if (is_guest_mode(vcpu)) in vmx_set_msr()
2250 if (is_guest_mode(vcpu)) { in vmx_set_msr()
3312 if (is_guest_mode(vcpu)) in vmx_is_valid_cr0()
4254 if (is_guest_mode(vcpu) && in vmx_deliver_nested_posted_interrupt()
4478 if (is_guest_mode(vcpu)) { in vmx_refresh_apicv_exec_ctrl()
5457 if (is_guest_mode(vcpu)) { in handle_set_cr0()
5483 if (is_guest_mode(vcpu)) { in handle_set_cr4()
6083 if (is_guest_mode(vcpu)) in handle_fastpath_preemption_timer()
[all …]
H A Dnested.c3431 if (WARN_ON_ONCE(!is_guest_mode(vcpu))) in nested_vmx_write_pml_buffer()
5574 (is_guest_mode(vcpu) && in handle_vmread()
5582 if (!is_guest_mode(vcpu) && is_vmcs12_ext_field(field)) in handle_vmread()
5598 if (WARN_ON_ONCE(is_guest_mode(vcpu))) in handle_vmread()
5684 (is_guest_mode(vcpu) && in handle_vmwrite()
5718 if (!is_guest_mode(vcpu) && !is_shadow_field_rw(field)) in handle_vmwrite()
6095 if (WARN_ON_ONCE(!is_guest_mode(vcpu))) { in handle_vmfunc()
6660 if (is_guest_mode(vcpu) && in vmx_get_nested_state()
6672 if (is_guest_mode(vcpu)) { in vmx_get_nested_state()
6707 if (is_guest_mode(vcpu)) { in vmx_get_nested_state()
[all …]
H A Dsgx.c503 if (!vmcs12 && is_guest_mode(vcpu)) in vmx_write_encls_bitmap()
H A Dvmx.h733 return enable_unrestricted_guest && (!is_guest_mode(vcpu) || in is_unrestricted_guest()
/linux-6.15/include/linux/
H A Damd-iommu.h24 bool is_guest_mode; member
/linux-6.15/arch/x86/kvm/svm/
H A Davic.c131 if (is_guest_mode(&svm->vcpu) && in avic_deactivate_vmcb()
544 if (is_guest_mode(vcpu)) in avic_vcpu_get_apicv_inhibit_reasons()
946 pi.is_guest_mode = true; in avic_pi_update_irte()
957 if (!ret && pi.is_guest_mode) in avic_pi_update_irte()
984 pi.is_guest_mode = false; in avic_pi_update_irte()
H A Dsvm.c1011 if (is_guest_mode(vcpu)) in svm_enable_lbrv()
1031 if (is_guest_mode(vcpu)) in svm_disable_lbrv()
2438 if (is_guest_mode(vcpu)) { in emulate_svm_instr()
2480 if (!is_guest_mode(vcpu)) in gp_interception()
3113 is_guest_mode(vcpu)) in svm_set_msr()
3123 if (is_guest_mode(vcpu)) in svm_set_msr()
3661 if (is_guest_mode(vcpu)) { in svm_handle_exit()
3934 if (is_guest_mode(vcpu)) { in svm_interrupt_blocked()
3995 if (!is_guest_mode(vcpu)) in svm_enable_irq_window()
4273 if (is_guest_mode(vcpu)) in svm_exit_handlers_fastpath()
[all …]
H A Dsvm.h507 if (is_guest_mode(&svm->vcpu) && !nested_vgif_enabled(svm)) in get_vgif_vmcb()
568 if (is_guest_mode(&svm->vcpu)) in get_vnmi_vmcb_l1()
653 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr()
H A Dnested.c134 if (!is_guest_mode(&svm->vcpu)) in recalc_intercepts()
1237 if (is_guest_mode(vcpu)) { in svm_leave_nested()
1606 if (is_guest_mode(vcpu)) { in svm_get_nested_state()
1621 if (!is_guest_mode(vcpu)) in svm_get_nested_state()
1743 if (is_guest_mode(vcpu)) in svm_set_nested_state()
1788 if (WARN_ON(!is_guest_mode(vcpu))) in svm_get_nested_state_pages()
/linux-6.15/arch/x86/kvm/mmu/
H A Dmmu.c4614 if (is_guest_mode(vcpu)) in kvm_mmu_faultin_pfn()
5542 role.base.guest_mode = is_guest_mode(vcpu); in kvm_calc_cpu_role()
6226 if (!is_guest_mode(vcpu)) in kvm_mmu_write_protect_fault()
/linux-6.15/drivers/iommu/amd/
H A Diommu.c3891 if (pi_data->is_guest_mode) { in amd_ir_set_vcpu_affinity()