All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ky Srinivasan" <ksrinivasan@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] PV driver compatibility
Date: Wed, 20 Jan 2010 09:02:03 -0700	[thread overview]
Message-ID: <4B56C68B020000300007DB60@sinclair.provo.novell.com> (raw)

[-- 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

             reply	other threads:[~2010-01-20 16:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20 16:02 Ky Srinivasan [this message]
2010-01-20 16:07 ` [PATCH] PV driver compatibility 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
     [not found] <4B586E2D020000300007DDE1@sinclair.provo.novell.com>
2010-01-21 23:04 ` Ky Srinivasan
2010-01-22  7:37   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B56C68B020000300007DB60@sinclair.provo.novell.com \
    --to=ksrinivasan@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.