| Date | Tue, 15 Feb 2011 16:21:53 -0800 | From | Greg KH <> | Subject | [patch 145/176] KVM: i8259: initialize isr_ack |
| |
2.6.36-stable review patch. If anyone has any objections, please let us know.
------------------
From: Avi Kivity <avi@redhat.com>
commit a0272630bb594b4eac03a79e77957df7dad8eade upstream.
isr_ack is never initialized. So, until the first PIC reset, interrupts may fail to be injected. This can cause Windows XP to fail to boot, as reported in the fallout from the fix to https://bugzilla.kernel.org/show_bug.cgi?id=21962.
Reported-and-tested-by: Nicolas Prochazka <prochazka.nicolas@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- arch/x86/kvm/i8259.c | 2 ++ 1 file changed, 2 insertions(+)
--- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c @@ -570,6 +570,8 @@ struct kvm_pic *kvm_create_pic(struct kv s->pics[1].elcr_mask = 0xde; s->pics[0].pics_state = s; s->pics[1].pics_state = s; + s->pics[0].isr_ack = 0xff; + s->pics[1].isr_ack = 0xff; /* * Initialize PIO device
|