virtio-iommu: Remove non transitional name
PATCH 1/1 virtio-iommu: Remove non transitional name
Remove non transitional name for virtio iommu. Like other devices introduced after 1.0 spec, the virtio-iommu does not need it.
--- hw/virtio/virtio-iommu-pci.c | 1 - 1 file changed, 1 deletion(-)
hw/virtio/virtio-iommu-pci.c +0 -1
@@ -100,7 +100,6 @@ static void virtio_iommu_pci_instance_init(Object *obj)static const VirtioPCIDeviceTypeInfo virtio_iommu_pci_info = { .base_name =TYPE_VIRTIO_IOMMU_PCI , .generic_name ="virtio-iommu-pci" , - .non_transitional_name ="virtio-iommu-pci-non-transitional" , .instance_size =sizeof (VirtIOIOMMUPCI), .instance_init = virtio_iommu_pci_instance_init, .class_init = virtio_iommu_pci_class_init,
Signature · 1 line
2.27.0
Quoted 15 lines · Eric Auger
Remove non transitional name for virtio iommu. Like other devices introduced after 1.0 spec, the virtio-iommu does not need it.
Signed-off-by Eric Auger <[email protected]>Reported-by Andrea Bolognani <[email protected]>--- hw/virtio/virtio-iommu-pci.c | 1 - 1 file changed, 1 deletion(-)hw/virtio/virtio-iommu-pci.c +0
-0
hw/virtio/virtio-iommu-pci.c static void virtio_iommu_pci_instance_init(Object *obj) · line 105
Quoted 7 lines
hw/virtio/virtio-iommu-pci.c +0
-1@@ -100,7 +100,6 @@ static void virtio_iommu_pci_instance_init(Object *obj)static const VirtioPCIDeviceTypeInfo virtio_iommu_pci_info = { .base_name =TYPE_VIRTIO_IOMMU_PCI , .generic_name ="virtio-iommu-pci" , - .non_transitional_name ="virtio-iommu-pci-non-transitional" , .instance_size =sizeof (VirtIOIOMMUPCI), .instance_init = virtio_iommu_pci_instance_init, .class_init = virtio_iommu_pci_class_init,
No objections, but I'm a bit confused regarding base_name and generic_name here. Can you drop base_name, re-define TYPE_VIRTIO_IOMMU_PCI to "virtio-iommu-pci", and switch generic_name over to it? I think that would be more in line with other modern-only devices. AFAICS, the places using the #define should continue to work.
Hi Connie,
Quoted 21 lines · Cornelia Huck
Quoted 19 lines · Eric Auger
Remove non transitional name for virtio iommu. Like other devices introduced after 1.0 spec, the virtio-iommu does not need it.
Signed-off-by Eric Auger <[email protected]>Reported-by Andrea Bolognani <[email protected]>--- hw/virtio/virtio-iommu-pci.c | 1 - 1 file changed, 1 deletion(-)hw/virtio/virtio-iommu-pci.c +0
-1@@ -100,7 +100,6 @@ static void virtio_iommu_pci_instance_init(Object *obj)static const VirtioPCIDeviceTypeInfo virtio_iommu_pci_info = { .base_name =TYPE_VIRTIO_IOMMU_PCI , .generic_name ="virtio-iommu-pci" , - .non_transitional_name ="virtio-iommu-pci-non-transitional" ,
Quoted 9 lines
hw/virtio/virtio-iommu-pci.c static void virtio_iommu_pci_instance_init(Object *obj) · line 105
Quoted 3 lines
hw/virtio/virtio-iommu-pci.c +0
-0.instance_size = sizeof(VirtIOIOMMUPCI), .instance_init = virtio_iommu_pci_instance_init, .class_init = virtio_iommu_pci_class_init,No objections, but I'm a bit confused regarding
base_nameandgeneric_namehere. Can you dropbase_name, re-defineTYPE_VIRTIO_IOMMU_PCIto "virtio-iommu-pci", and switchgeneric_nameover to it? I think that would be more in line with other modern-only devices. AFAICS, the places using the #define should continue to work.
Sure, this all makes sense to me.
Thanks!
Eric