]> git.proxmox.com Git - mirror_qemu.git/commitdiff
pci-ids: drop PCI_DEVICE_ID_VIRTIO_MEM
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Oct 2022 11:20:57 +0000 (13:20 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Oct 2022 10:01:11 +0000 (12:01 +0200)
Not needed for a virtio 1.0 device.  virtio_pci_device_plugged()
overrides them anyway (so no functional change).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20221004112100.301935-3-kraxel@redhat.com>

hw/virtio/virtio-mem-pci.c
include/hw/pci/pci.h

index be2383b0c522855158877c13dbd879e610d50e35..5c5c1e3ae3da97b2b08a485a1b8351b231a40889 100644 (file)
@@ -104,8 +104,6 @@ static void virtio_mem_pci_class_init(ObjectClass *klass, void *data)
 
     k->realize = virtio_mem_pci_realize;
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
-    pcidev_k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
-    pcidev_k->device_id = PCI_DEVICE_ID_VIRTIO_MEM;
     pcidev_k->revision = VIRTIO_PCI_ABI_VERSION;
     pcidev_k->class_id = PCI_CLASS_OTHERS;
 
index 89eaca4293892dd0d64ff03ccedb6863b24f1814..b6aefb33fb17fed5c9e53a40095683336d6f25dc 100644 (file)
@@ -85,7 +85,6 @@ extern bool pci_available;
 #define PCI_DEVICE_ID_VIRTIO_9P          0x1009
 #define PCI_DEVICE_ID_VIRTIO_VSOCK       0x1012
 #define PCI_DEVICE_ID_VIRTIO_PMEM        0x1013
-#define PCI_DEVICE_ID_VIRTIO_MEM         0x1015
 
 #define PCI_VENDOR_ID_REDHAT             0x1b36
 #define PCI_DEVICE_ID_REDHAT_BRIDGE      0x0001