Skip to contentSkip to conversation

virtio-iommu: Name Tweaks

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

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Eric Auger

author
#0 lore raw

v2 cover virtio-iommu: Name Tweaks

This small series removes the non transitional name, drop the base_name and change the generic_name into "virtio-iommu-pci".

History:
v1 -> v2:
- drop the base_name and change the generic_name into "virtio-iommu-pci" (Connie)

Eric Auger (2):
virtio-iommu: Remove the non transitional name
virtio-iommu: Drop base_name and change generic_name

 hw/virtio/virtio-iommu-pci.c     | 4 +---
 include/hw/virtio/virtio-iommu.h | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH v2 1/2 virtio-iommu: Remove the non transitional name

Remove the 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
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] virtio-iommu: Remove the non transitional name

Quoted 9 lines · Eric Auger

Remove the 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(-)
author
#3 lore raw

PATCH v2 2/2 virtio-iommu: Drop base_name and change generic_name

In reply to Eric Auger

Drop base_name and turn generic_name into "virtio-iommu-pci". This is more in line with more in line with other modern-only devices

---
 hw/virtio/virtio-iommu-pci.c     | 3 +--
 include/hw/virtio/virtio-iommu.h | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
hw/virtio/virtio-iommu-pci.c +1 -2
index 86fa4e6c28..a160ae6b41 100644
@@ -98,8 +98,7 @@ 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",
+    .generic_name          = TYPE_VIRTIO_IOMMU_PCI,
     .instance_size = sizeof(VirtIOIOMMUPCI),
     .instance_init = virtio_iommu_pci_instance_init,
     .class_init    = virtio_iommu_pci_class_init,
include/hw/virtio/virtio-iommu.h +1 -1
index 273e35c04b..e2339e5b72 100644
@@ -26,7 +26,7 @@
 #include "qom/object.h"
 
 #define TYPE_VIRTIO_IOMMU "virtio-iommu-device"
-#define TYPE_VIRTIO_IOMMU_PCI "virtio-iommu-device-base"
+#define TYPE_VIRTIO_IOMMU_PCI "virtio-iommu-pci"
 OBJECT_DECLARE_SIMPLE_TYPE(VirtIOIOMMU, VIRTIO_IOMMU)
 
 #define TYPE_VIRTIO_IOMMU_MEMORY_REGION "virtio-iommu-memory-region"
Signature · 1 line
2.27.0
Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] virtio-iommu: Drop base_name and change generic_name

Quoted 3 lines · Eric Auger

Drop base_name and turn generic_name into "virtio-iommu-pci". This is more in line with more in line with other modern-only devices

Duplicate "more in line with".

Quoted 7 lines
---
 hw/virtio/virtio-iommu-pci.c     | 3 +--
 include/hw/virtio/virtio-iommu.h | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)