[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 17/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_IOMMU
From: |
Gerd Hoffmann |
Subject: |
[PULL 17/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_IOMMU |
Date: |
Thu, 13 Oct 2022 08:52:15 +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: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20221004112100.301935-2-kraxel@redhat.com>
---
include/hw/pci/pci.h | 1 -
hw/virtio/virtio-iommu-pci.c | 4 +---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index b54b6ef88fc3..89eaca429389 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -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_IOMMU 0x1014
#define PCI_DEVICE_ID_VIRTIO_MEM 0x1015
#define PCI_VENDOR_ID_REDHAT 0x1b36
diff --git a/hw/virtio/virtio-iommu-pci.c b/hw/virtio/virtio-iommu-pci.c
index 844d64770406..79ea8334f04e 100644
--- a/hw/virtio/virtio-iommu-pci.c
+++ b/hw/virtio/virtio-iommu-pci.c
@@ -74,8 +74,6 @@ static void virtio_iommu_pci_class_init(ObjectClass *klass,
void *data)
k->realize = virtio_iommu_pci_realize;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
device_class_set_props(dc, virtio_iommu_pci_properties);
- pcidev_k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
- pcidev_k->device_id = PCI_DEVICE_ID_VIRTIO_IOMMU;
pcidev_k->revision = VIRTIO_PCI_ABI_VERSION;
pcidev_k->class_id = PCI_CLASS_OTHERS;
dc->hotpluggable = false;
@@ -90,7 +88,7 @@ static void virtio_iommu_pci_instance_init(Object *obj)
}
static const VirtioPCIDeviceTypeInfo virtio_iommu_pci_info = {
- .generic_name = TYPE_VIRTIO_IOMMU_PCI,
+ .generic_name = TYPE_VIRTIO_IOMMU_PCI,
.instance_size = sizeof(VirtIOIOMMUPCI),
.instance_init = virtio_iommu_pci_instance_init,
.class_init = virtio_iommu_pci_class_init,
--
2.37.3
- [PULL 04/26] alsaaudio: reduce playback latency, (continued)
- [PULL 04/26] alsaaudio: reduce playback latency, Gerd Hoffmann, 2022/10/13
- [PULL 06/26] spiceaudio: add a pcm_ops buffer_get_free function, Gerd Hoffmann, 2022/10/13
- [PULL 07/26] spiceaudio: update comment, Gerd Hoffmann, 2022/10/13
- [PULL 08/26] audio: swap audio_rate_get_bytes() function parameters, Gerd Hoffmann, 2022/10/13
- [PULL 15/26] cirrus_vga: fix potential memory overflow, Gerd Hoffmann, 2022/10/13
- [PULL 23/26] qemu-edid: Restrict input parameter -d to avoid division by zero, Gerd Hoffmann, 2022/10/13
- [PULL 05/26] audio: add more audio rate control functions, Gerd Hoffmann, 2022/10/13
- [PULL 10/26] audio: refactor audio_get_avail(), Gerd Hoffmann, 2022/10/13
- [PULL 12/26] audio: prevent an integer overflow in resampling code, Gerd Hoffmann, 2022/10/13
- [PULL 16/26] docs: add firmware feature flags, Gerd Hoffmann, 2022/10/13
- [PULL 17/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_IOMMU,
Gerd Hoffmann <=
- [PULL 22/26] ui/gtk: Fix the implicit mouse ungrabbing logic, Gerd Hoffmann, 2022/10/13
- [PULL 19/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_PMEM, Gerd Hoffmann, 2022/10/13
- [PULL 20/26] pci-ids: drop list of modern virtio devices, Gerd Hoffmann, 2022/10/13
- [PULL 13/26] ui/vnc-clipboard: fix integer underflow in vnc_client_cut_text_ext, Gerd Hoffmann, 2022/10/13
- [PULL 11/26] audio: fix sw->buf size for audio recording, Gerd Hoffmann, 2022/10/13
- [PULL 18/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_MEM, Gerd Hoffmann, 2022/10/13
- [PULL 14/26] ui/gtk-egl: egl context needs to be unbound in the end of gd_egl_switch, Gerd Hoffmann, 2022/10/13
- [PULL 21/26] pci-ids: document modern virtio-pci ids in pci.h too, Gerd Hoffmann, 2022/10/13
- [PULL 24/26] gtk: Add show_menubar=on|off command line option., Gerd Hoffmann, 2022/10/13
- [PULL 26/26] audio: improve out.voices test, Gerd Hoffmann, 2022/10/13