From: Avi Kivity <[email protected]>

Otherwise, a wily interrupt can slip through while the guest isn't prepared
for it (and while the irq base is zero).

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c
index 8d10c06..5de9ee0 100644
--- a/arch/x86/kvm/i8259.c
+++ b/arch/x86/kvm/i8259.c
@@ -275,7 +275,7 @@ void kvm_pic_reset(struct kvm_kpic_state *s)
 
        s->last_irr = 0;
        s->irr = 0;
-       s->imr = 0;
+       s->imr = 0xff;
        s->isr = 0;
        s->isr_ack = 0xff;
        s->priority_add = 0;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to