public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Assign the correct pci id range to virtio_pci
@ 2009-04-24 11:17 Pantelis Koukousoulas
  2009-04-24 13:19 ` Anthony Liguori
  2009-04-26 10:36 ` Avi Kivity
  0 siblings, 2 replies; 20+ messages in thread
From: Pantelis Koukousoulas @ 2009-04-24 11:17 UTC (permalink / raw)
  To: kvm; +Cc: Pantelis Koukousoulas

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


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

end of thread, other threads:[~2009-05-04  2:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 11:17 [PATCH] Assign the correct pci id range to virtio_pci Pantelis Koukousoulas
2009-04-24 13:19 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox