Ignore reads to the EOI register.
commit90d29343040e0d3156ddedfdec9e821b5f7b5f31
authorGlauber Costa <gcosta@redhat.com>
Thu, 27 Mar 2008 00:57:16 +0000 (26 21:57 -0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 27 Mar 2008 08:15:27 +0000 (27 10:15 +0200)
treeba41765b7461d706ee96a36db0ae1cae8b8d7300
parent35bedb386d0fc5d80cda7e2e2b2aa4378c934230
Ignore reads to the EOI register.

They seem legal in real hardware, even though the EOI
is a write-only register. By "legal" I mean they are completely
ignored, but at least, don't cause any bits to be set at ESR.

Without this patch, some (very recent) linux git trees will fail
to boot in i386.

This is generated from kvm-userspace, but should apply well to
plain qemu too.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/apic.c