xen/x86-ioapic-ack-default.patch
Charles Arnold 0c76f22ef1 - Update to Xen 4.0.2 rc2-pre, changeset 21443
- bnc#633573 - System fail to boot after running several warm
  reboot tests
  22749-vtd-workarounds.patch
- Upstream patches from Jan
  22744-ept-pod-locking.patch
  22777-vtd-ats-fixes.patch
  22781-pod-hap-logdirty.patch
  22782-x86-emul-smsw.patch
  22789-i386-no-x2apic.patch
  22790-svm-resume-migrate-pirqs.patch
  22816-x86-pirq-drop-priv-check.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=94
2011-02-04 21:19:54 +00:00

25 lines
839 B
Diff

Change default IO-APIC ack mode for single IO-APIC systems to old-style.
Index: xen-4.0.2-testing/xen/arch/x86/io_apic.c
===================================================================
--- xen-4.0.2-testing.orig/xen/arch/x86/io_apic.c
+++ xen-4.0.2-testing/xen/arch/x86/io_apic.c
@@ -1551,7 +1551,7 @@ static unsigned int startup_level_ioapic
return 0; /* don't check for pending */
}
-int __read_mostly ioapic_ack_new = 1;
+int __read_mostly ioapic_ack_new = -1;
static void setup_ioapic_ack(char *s)
{
if ( !strcmp(s, "old") )
@@ -2067,6 +2067,8 @@ void __init setup_IO_APIC(void)
else
io_apic_irqs = ~PIC_IRQS;
+ if (ioapic_ack_new < 0)
+ ioapic_ack_new = (nr_ioapics > 1);
printk("ENABLING IO-APIC IRQs\n");
printk(" -> Using %s ACK method\n", ioapic_ack_new ? "new" : "old");