Lines Matching refs:arch
97 return vcpu->arch.last_vmentry_cpu != -1; in kvm_vcpu_has_run()
102 return vcpu->arch.exception.pending || in kvm_is_exception_pending()
103 vcpu->arch.exception_vmexit.pending || in kvm_is_exception_pending()
109 vcpu->arch.exception.pending = false; in kvm_clear_exception_queue()
110 vcpu->arch.exception.injected = false; in kvm_clear_exception_queue()
111 vcpu->arch.exception_vmexit.pending = false; in kvm_clear_exception_queue()
117 vcpu->arch.interrupt.injected = true; in kvm_queue_interrupt()
118 vcpu->arch.interrupt.soft = soft; in kvm_queue_interrupt()
119 vcpu->arch.interrupt.nr = vector; in kvm_queue_interrupt()
124 vcpu->arch.interrupt.injected = false; in kvm_clear_interrupt_queue()
129 return vcpu->arch.exception.injected || vcpu->arch.interrupt.injected || in kvm_event_needs_reinjection()
130 vcpu->arch.nmi_injected; in kvm_event_needs_reinjection()
146 return !!(vcpu->arch.efer & EFER_LMA); in is_long_mode()
156 WARN_ON_ONCE(vcpu->arch.guest_state_protected); in is_64_bit_mode()
171 return vcpu->arch.guest_state_protected || is_64_bit_mode(vcpu); in is_64_bit_hypercall()
185 return vcpu->arch.walk_mmu == &vcpu->arch.nested_mmu; in mmu_is_nested()
230 vcpu->arch.mmio_gva = mmu_is_nested(vcpu) ? 0 : gva & PAGE_MASK; in vcpu_cache_mmio_info()
231 vcpu->arch.mmio_access = access; in vcpu_cache_mmio_info()
232 vcpu->arch.mmio_gfn = gfn; in vcpu_cache_mmio_info()
233 vcpu->arch.mmio_gen = gen; in vcpu_cache_mmio_info()
238 return vcpu->arch.mmio_gen == kvm_memslots(vcpu->kvm)->generation; in vcpu_match_mmio_gen()
249 if (gva != MMIO_GVA_ANY && vcpu->arch.mmio_gva != (gva & PAGE_MASK)) in vcpu_clear_mmio_info()
252 vcpu->arch.mmio_gva = 0; in vcpu_clear_mmio_info()
257 if (vcpu_match_mmio_gen(vcpu) && vcpu->arch.mmio_gva && in vcpu_match_mmio_gva()
258 vcpu->arch.mmio_gva == (gva & PAGE_MASK)) in vcpu_match_mmio_gva()
266 if (vcpu_match_mmio_gen(vcpu) && vcpu->arch.mmio_gfn && in vcpu_match_mmio_gpa()
267 vcpu->arch.mmio_gfn == gpa >> PAGE_SHIFT) in vcpu_match_mmio_gpa()
290 return !(kvm->arch.disabled_quirks & quirk); in kvm_check_has_quirk()
390 return pvclock_scale_delta(nsec, vcpu->arch.virtual_tsc_mult, in nsec_to_cycles()
391 vcpu->arch.virtual_tsc_shift); in nsec_to_cycles()
410 return kvm->arch.mwait_in_guest; in kvm_mwait_in_guest()
415 return kvm->arch.hlt_in_guest; in kvm_hlt_in_guest()
420 return kvm->arch.pause_in_guest; in kvm_pause_in_guest()
425 return kvm->arch.cstate_in_guest; in kvm_cstate_in_guest()
430 return kvm->arch.notify_vmexit_flags & KVM_X86_NOTIFY_VMEXIT_ENABLED; in kvm_notify_vmexit_enabled()
442 WRITE_ONCE(vcpu->arch.handling_intr_from_guest, (u8)intr); in kvm_before_interrupt()
447 WRITE_ONCE(vcpu->arch.handling_intr_from_guest, 0); in kvm_after_interrupt()
452 return vcpu->arch.handling_intr_from_guest == KVM_HANDLING_NMI; in kvm_handling_nmi_from_guest()