All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PV driver compatibility
@ 2010-01-20 16:02 Ky Srinivasan
  2010-01-20 16:07 ` Keir Fraser
  0 siblings, 1 reply; 14+ messages in thread
From: Ky Srinivasan @ 2010-01-20 16:02 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

The attached patch fixes what I believe is a typo and permits guests running the latest PV drivers to correctly interact with older back-ends.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>


[-- Attachment #2: magic_ioport_compat.patch --]
[-- Type: text/plain, Size: 809 bytes --]

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.0.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
===================================================================
--- xen-4.0.0-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	2009-12-22 06:23:01.000000000 -0700
+++ xen-4.0.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	2010-01-06 12:50:53.000000000 -0700
@@ -284,7 +284,10 @@
 
 	if (magic != XEN_IOPORT_MAGIC_VAL) {
 		dev_err(dev, "invalid magic %#x", magic);
-		return -ENODEV;
+		/* 
+		 * Older backend; just return 0 to be compatible.
+		 */
+		return 0;
 	}
 
 	protocol = inb(XEN_IOPORT_PROTOVER);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-01-26 10:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4B586E2D020000300007DDE1@sinclair.provo.novell.com>
2010-01-21 23:04 ` [PATCH] PV driver compatibility Ky Srinivasan
2010-01-22  7:37   ` Ian Campbell
2010-01-20 16:02 Ky Srinivasan
2010-01-20 16:07 ` Keir Fraser
2010-01-21 20:38   ` Ian Campbell
2010-01-21 21:46     ` Keir Fraser
2010-01-22  7:31       ` Ian Campbell
2010-01-22  8:03         ` Keir Fraser
2010-01-22  8:43           ` Ian Campbell
2010-01-22  9:07             ` Keir Fraser
2010-01-22 10:45             ` Keir Fraser
2010-01-22 11:16               ` Pasi Kärkkäinen
2010-01-26 10:12                 ` Pasi Kärkkäinen
2010-01-26 10:19                   ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.