xen/magic_ioport_compat.patch
Charles Arnold 6aae1b5cd9 - Update to c/s 23010 Xen 4.1 rc8
- use _smp_mflags instead of jobs, jobs is not expanded everywhere

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=104
2011-03-22 21:15:11 +00:00

21 lines
746 B
Diff

Make our PV drivers work with older hosts that do not recognize the new PV driver protocol.
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Index: xen-4.1.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
===================================================================
--- xen-4.1.0-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
+++ xen-4.1.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
@@ -322,7 +322,10 @@ static int check_platform_magic(struct d
if (magic != XEN_IOPORT_MAGIC_VAL) {
err = "unrecognised magic value";
- goto no_dev;
+ /*
+ * Older backend; just return 0 to be compatible.
+ */
+ return 0;
}
protocol = inb(XEN_IOPORT_PROTOVER);