j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Ping? Can anyone apply this before the 1.1 release of QEMU?
On 5/19/12, Artyom Tarasenko atar4qemu@gmail.com wrote:
Identify virtio network device in PCI probe.
Signed-off-by: Artyom Tarasenko atar4qemu@gmail.com
drivers/pci_database.c | 8 ++++++++ include/drivers/pci.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/pci_database.c b/drivers/pci_database.c index 1d2958c..197f27e 100644 --- a/drivers/pci_database.c +++ b/drivers/pci_database.c @@ -129,6 +129,14 @@ static const pci_dev_t eth_devices[] = { NULL, "ethernet", }, {
/* Virtio-network controller */
PCI_VENDOR_ID_REDHAT_QUMRANET, PCI_DEVICE_ID_VIRTIO_NET,
NULL, "virtio-net", NULL,
"pci1af4,1000\0pci1af4,1000\0pciclass,020000\0",
0, 0, 0,
virtio_config_cb, NULL,
- },
- { 0xFFFF, 0xFFFF, NULL, NULL, NULL, NULL, -1, -1, -1,
diff --git a/include/drivers/pci.h b/include/drivers/pci.h index 4c996c0..d3b290a 100644 --- a/include/drivers/pci.h +++ b/include/drivers/pci.h @@ -206,6 +206,7 @@ extern const pci_arch_t *arch; #define PCI_DEVICE_ID_QEMU_VGA 0x1111
#define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 +#define PCI_DEVICE_ID_VIRTIO_NET 0x1000 #define PCI_DEVICE_ID_VIRTIO_BLOCK 0x1001
#define PCI_VENDOR_ID_INTEL 0x8086
1.7.1