Skip to contentSkip to conversation

hw/arm/virt: Rename default_bus_bypass_iommu

PATCH Applied Jean-Philippe Brucker 3 participants 3 messages Oct 26, 2021 – Nov 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 hw/arm/virt: Rename default_bus_bypass_iommu

Since commit d8fb7d0969d5 ("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, because keyval_dashify() transforms them to dashes and the parser doesn't find the parameter.

This affects option default_bus_bypass_iommu which was introduced in the same release:

$ qemu-system-aarch64 -M virt,default_bus_bypass_iommu=on
qemu-system-aarch64: Property 'virt-6.1-machine.default-bus-bypass-iommu' not found

Rename the parameter to "default-bus-bypass-iommu". Passing "default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.

Fixes 6d7a85483a06 ("hw/arm/virt: Add default_bus_bypass_iommu machine option")

---
v2: Resending to be merged separately from the equivalent x86 fix,
already queued by Paolo [2]. No change other than added review tag.
v1: https://lore.kernel.org/qemu-devel/[email protected]/

[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
 hw/arm/virt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/arm/virt.c +2 -2
index ca433adb5b..369552ad45 100644
@@ -2737,10 +2737,10 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
                                           "Set the IOMMU type. "
                                           "Valid values are none and smmuv3");
 
-    object_class_property_add_bool(oc, "default_bus_bypass_iommu",
+    object_class_property_add_bool(oc, "default-bus-bypass-iommu",
                                    virt_get_default_bus_bypass_iommu,
                                    virt_set_default_bus_bypass_iommu);
-    object_class_property_set_description(oc, "default_bus_bypass_iommu",
+    object_class_property_set_description(oc, "default-bus-bypass-iommu",
                                           "Set on/off to enable/disable "
                                           "bypass_iommu for default root bus");
 
Signature · 1 line
2.33.0
#1 lore raw
Quoted 7 lines · Jean-Philippe Brucker

Since commit d8fb7d0969d5 ("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, because keyval_dashify() transforms them to dashes and the parser doesn't find the parameter.

This affects option default_bus_bypass_iommu which was introduced in the same release:

Quoted 7 lines
$ qemu-system-aarch64 -M virt,default_bus_bypass_iommu=on
qemu-system-aarch64: Property 'virt-6.1-machine.default-bus-bypass-iommu' not found

Rename the parameter to "default-bus-bypass-iommu". Passing "default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.

Quoted 33 lines
Fixes 6d7a85483a06 ("hw/arm/virt: Add default_bus_bypass_iommu machine option")

---
v2: Resending to be merged separately from the equivalent x86 fix,
already queued by Paolo [2]. No change other than added review tag.
v1: https://lore.kernel.org/qemu-devel/[email protected]/

[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
 hw/arm/virt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/arm/virt.c +2 -2
index ca433adb5b..369552ad45 100644
@@ -2737,10 +2737,10 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
                                           "Set the IOMMU type. "
                                           "Valid values are none and smmuv3");
 
-    object_class_property_add_bool(oc, "default_bus_bypass_iommu",
+    object_class_property_add_bool(oc, "default-bus-bypass-iommu",
                                    virt_get_default_bus_bypass_iommu,
                                    virt_set_default_bus_bypass_iommu);
-    object_class_property_set_description(oc, "default_bus_bypass_iommu",
+    object_class_property_set_description(oc, "default-bus-bypass-iommu",
                                           "Set on/off to enable/disable "
                                           "bypass_iommu for default root bus");
 
#2 lore raw
In reply to Jean-Philippe Brucker
Quoted 24 lines · Jean-Philippe Brucker

Since commit d8fb7d0969d5 ("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, because keyval_dashify() transforms them to dashes and the parser doesn't find the parameter.

This affects option default_bus_bypass_iommu which was introduced in the same release:

$ qemu-system-aarch64 -M virt,default_bus_bypass_iommu=on
qemu-system-aarch64: Property 'virt-6.1-machine.default-bus-bypass-iommu' not found

Rename the parameter to "default-bus-bypass-iommu". Passing "default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.

Fixes 6d7a85483a06 ("hw/arm/virt: Add default_bus_bypass_iommu machine option")

---
v2: Resending to be merged separately from the equivalent x86 fix,
already queued by Paolo [2]. No change other than added review tag.
v1:https://lore.kernel.org/qemu-devel/[email protected]/

Quoted 4 lines

[2]https://lore.kernel.org/qemu-devel/[email protected]/

---
  hw/arm/virt.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to target-arm.next.

r~