Skip to contentSkip to conversation

virtio-iommu: Remove non transitional name

PATCH Superseded Eric Auger 2 participants 3 messages Oct 13, 2021

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Eric Auger

author
#0 lore raw

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
index 770c286be7..86fa4e6c28 100644
@@ -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
#1 lore raw
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.

---
 hw/virtio/virtio-iommu-pci.c | 1 -
 1 file changed, 1 deletion(-)
hw/virtio/virtio-iommu-pci.c +0 -0
index 770c286be7..86fa4e6c28 100644

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.

author
#2 lore raw

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.

---
 hw/virtio/virtio-iommu-pci.c | 1 -
 1 file changed, 1 deletion(-)
hw/virtio/virtio-iommu-pci.c +0 -1
index 770c286be7..86fa4e6c28 100644
@@ -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_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.

Sure, this all makes sense to me.

Thanks!

Eric