126eef70cSAvi Kivity #ifndef ARCH_X86_KVM_X86_H 226eef70cSAvi Kivity #define ARCH_X86_KVM_X86_H 326eef70cSAvi Kivity 426eef70cSAvi Kivity #include <linux/kvm_host.h> 526eef70cSAvi Kivity 626eef70cSAvi Kivity static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu) 726eef70cSAvi Kivity { 826eef70cSAvi Kivity vcpu->arch.exception.pending = false; 926eef70cSAvi Kivity } 1026eef70cSAvi Kivity 11*937a7eaeSAvi Kivity static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector) 12*937a7eaeSAvi Kivity { 13*937a7eaeSAvi Kivity vcpu->arch.interrupt.pending = true; 14*937a7eaeSAvi Kivity vcpu->arch.interrupt.nr = vector; 15*937a7eaeSAvi Kivity } 16*937a7eaeSAvi Kivity 17*937a7eaeSAvi Kivity static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu) 18*937a7eaeSAvi Kivity { 19*937a7eaeSAvi Kivity vcpu->arch.interrupt.pending = false; 20*937a7eaeSAvi Kivity } 21*937a7eaeSAvi Kivity 2226eef70cSAvi Kivity #endif 23