aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/x86.h')
-rw-r--r--arch/x86/kvm/x86.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
index 39350b252725..21203d421276 100644
--- a/arch/x86/kvm/x86.h
+++ b/arch/x86/kvm/x86.h
@@ -30,4 +30,10 @@ static inline u8 kvm_pop_irq(struct kvm_vcpu *vcpu)
30 clear_bit(word_index, &vcpu->arch.irq_summary); 30 clear_bit(word_index, &vcpu->arch.irq_summary);
31 return irq; 31 return irq;
32} 32}
33
34static inline bool kvm_event_needs_reinjection(struct kvm_vcpu *vcpu)
35{
36 return vcpu->arch.exception.pending || vcpu->arch.interrupt.pending ||
37 vcpu->arch.nmi_injected;
38}
33#endif 39#endif