public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pantelis Koukousoulas <pktoss@gmail.com>
To: kvm@vger.kernel.org
Cc: Pantelis Koukousoulas <pktoss@gmail.com>
Subject: [PATCH] Assign the correct pci id range to virtio_pci
Date: Fri, 24 Apr 2009 14:17:40 +0300	[thread overview]
Message-ID: <1240571860-13832-1-git-send-email-pktoss@gmail.com> (raw)

According to the file pci-ids.txt in qemu sources, the range of PCI
device IDs assigned to virtio_pci is 0x1000 to 0x10ff, with a few
subranges that have different rules regarding who can get an ID
there and how.

Nevertheless, the full range should be assigned to the generic
virtio_pci driver, so that all corresponding devices, including
the experimental/unreleased ones "just work".
---
 drivers/virtio/virtio_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c
index 330aacb..db3f3b5 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -325,8 +325,8 @@ static int __devinit virtio_pci_probe(struct pci_dev *pci_dev,
 	struct virtio_pci_device *vp_dev;
 	int err;
 
-	/* We only own devices >= 0x1000 and <= 0x103f: leave the rest. */
-	if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f)
+	/* We only own devices >= 0x1000 and <= 0x10ff: leave the rest. */
+	if (pci_dev->device < 0x1000 || pci_dev->device > 0x10ff)
 		return -ENODEV;
 
 	if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) {
-- 
1.5.6.3


             reply	other threads:[~2009-04-24 11:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 11:17 Pantelis Koukousoulas [this message]
2009-04-24 13:19 ` [PATCH] Assign the correct pci id range to virtio_pci Anthony Liguori
     [not found]   ` <49F55DD1.8020506@redhat.com>
2009-04-27  8:39     ` Pantelis Koukousoulas
2009-04-27  9:01       ` Gerd Hoffmann
2009-04-27  9:11         ` Pantelis Koukousoulas
2009-04-27  9:16           ` Gerd Hoffmann
2009-04-27  9:24             ` Avi Kivity
2009-04-27 11:45               ` Pantelis Koukousoulas
2009-04-27 11:56                 ` Avi Kivity
2009-04-28 14:42                   ` Pantelis Koukousoulas
2009-04-28 15:19                     ` Gerd Hoffmann
2009-04-29  7:47                       ` Pantelis Koukousoulas
2009-04-26 10:36 ` Avi Kivity
2009-04-26 12:44   ` Pantelis Koukousoulas
2009-04-26 12:49     ` Avi Kivity
2009-04-26 23:49       ` Rusty Russell
2009-04-27  0:44         ` Anthony Liguori
2009-04-27  3:23           ` Pantelis Koukousoulas
2009-05-04  1:53             ` Rusty Russell
2009-05-04  2:32               ` Pantelis Koukousoulas

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=1240571860-13832-1-git-send-email-pktoss@gmail.com \
    --to=pktoss@gmail.com \
    --cc=kvm@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox