1 #ifndef ARCH_X86_KVM_X86_H
2 #define ARCH_X86_KVM_X86_H
4 #include <linux/kvm_host.h>
6 static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu)
8 vcpu->arch.exception.pending = false;
11 static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector)
13 vcpu->arch.interrupt.pending = true;
14 vcpu->arch.interrupt.nr = vector;
17 static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu)
19 vcpu->arch.interrupt.pending = false;