Always create PCI interrupt override acpi tables.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 9 Oct 2009 01:33:26 +0000 (21:33 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 9 Oct 2009 01:33:26 +0000 (21:33 -0400)
This is what qemu pcbios does since commit
da5ff65dc9473e3f069736d38b9a189ea14a67eb.

Qemu implements PCI interrupts as active high, but OSes assume
that they are active low as per PCI spec. Qemu works without override
only because ioapic there doesn't implement polarity bit.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/acpi.c

index dafd8c89f5e8deaca453e7df3e232fcd27467b8d..eed5ee4f3084a68aa2a1c8965be5dd286f9ce37d 100644 (file)
@@ -196,12 +196,8 @@ struct madt_io_apic
                                  * lines start */
 } PACKED;
 
-#if CONFIG_KVM
 /* IRQs 5,9,10,11 */
 #define PCI_ISA_IRQ_MASK    0x0e20
-#else
-#define PCI_ISA_IRQ_MASK    0x0000
-#endif
 
 struct madt_intsrcovr {
     APIC_HEADER_DEF