hw/arm/virt: Rename default_bus_bypass_iommu
PATCH 1/2 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.
--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/arm/virt.c +2 -2
@@ -2671,10 +2671,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.32.0
PATCH 2/2 hw/i386: 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-x86_64 -M q35,default_bus_bypass_iommu=on qemu-system-x86_64: Property 'pc-q35-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.
--- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/pc.c +1 -1
@@ -1779,7 +1779,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data)object_class_property_add_bool (oc,"hpet" , pc_machine_get_hpet, pc_machine_set_hpet); -object_class_property_add_bool (oc,"default_bus_bypass_iommu" , +object_class_property_add_bool (oc,"default-bus-bypass-iommu" , pc_machine_get_default_bus_bypass_iommu, pc_machine_set_default_bus_bypass_iommu);
Signature · 1 line
2.32.0
Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
Quoted 10 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich was introduced in the same release:$ qemu-system-x86_64 -M q35,default_bus_bypass_iommu=on qemu-system-x86_64: Property 'pc-q35-6.1-machine.default-bus-bypass-iommu' not found
Quoted 6 lines
Rename the parameter to "default-bus-bypass-iommu". Passing "
default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.Fixes c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")Signed-off-by Jean-Philippe Brucker <[email protected]>
Eric
Quoted 18 lines
--- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/pc.c +1
-1@@ -1779,7 +1779,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data)object_class_property_add_bool (oc,"hpet" , pc_machine_get_hpet, pc_machine_set_hpet); -object_class_property_add_bool (oc,"default_bus_bypass_iommu" , +object_class_property_add_bool (oc,"default-bus-bypass-iommu" , pc_machine_get_default_bus_bypass_iommu, pc_machine_set_default_bus_bypass_iommu);
Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
In reply to Jean-Philippe BruckerMichael & Marcel, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged. I just asked the arm/virt maintainer to do the same for PATCH 1.
Quoted 32 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich was introduced in the same release:$ qemu-system-x86_64 -M q35,default_bus_bypass_iommu=on qemu-system-x86_64: Property 'pc-q35-6.1-machine.default-bus-bypass-iommu' not foundRename the parameter to "default-bus-bypass-iommu". Passing "
default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.Fixes c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/pc.c +1
-1@@ -1779,7 +1779,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data)object_class_property_add_bool (oc,"hpet" , pc_machine_get_hpet, pc_machine_set_hpet); -object_class_property_add_bool (oc,"default_bus_bypass_iommu" , +object_class_property_add_bool (oc,"default-bus-bypass-iommu" , pc_machine_get_default_bus_bypass_iommu, pc_machine_set_default_bus_bypass_iommu);
Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
Quoted 3 lines · Markus Armbruster
Michael & Marcel, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged.
Thanks for the reminder. Jean-Philippe, Cc maintainers will help patches get merged in a timely manner in the future.
Quoted 2 lines
I just asked the arm/virt
maintainer to do the same for PATCH 1.
Some questions below.
Quoted 11 lines
Quoted 9 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich was introduced in the same release:$ qemu-system-x86_64 -M q35,default_bus_bypass_iommu=on qemu-system-x86_64: Property 'pc-q35-6.1-machine.default-bus-bypass-iommu' not found
I don't see this behaviour. What did I miss?
Quoted 25 lines
Quoted 22 lines
Rename the parameter to "default-bus-bypass-iommu". Passing "
default_bus_bypass_iommu" is still valid since the underscore are transformed automatically.Fixes c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/pc.c +1
-1@@ -1779,7 +1779,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data)object_class_property_add_bool (oc,"hpet" , pc_machine_get_hpet, pc_machine_set_hpet); -object_class_property_add_bool (oc,"default_bus_bypass_iommu" , +object_class_property_add_bool (oc,"default-bus-bypass-iommu" , pc_machine_get_default_bus_bypass_iommu, pc_machine_set_default_bus_bypass_iommu);
Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
Quoted 20 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Michael & Marcel, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged.
Thanks for the reminder. Jean-Philippe, Cc maintainers will help patches get merged in a timely manner in the future.
Quoted 2 lines
I just asked the arm/virt
maintainer to do the same for PATCH 1.Some questions below.
Quoted 6 lines
Quoted 4 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
This affects option
default_bus_bypass_iommuwhich was introduced in the same release:$ qemu-system-x86_64 -M q35,default_bus_bypass_iommu=on qemu-system-x86_64: Property 'pc-q35-6.1-machine.default-bus-bypass-iommu' not foundI don't see this behaviour. What did I miss?
I looked at the source and somehow missed that the fix is already there (commit 739b38630c45). Sorry for the noise!
[...]
Did this series fall through the cracks for 6.1?
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Quoted 1 line · Markus Armbruster
Did this series fall through the cracks for 6.1?
Missed 6.1. What now?
Quoted 38 lines
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Quoted 5 lines · Markus Armbruster
Quoted 1 line · Markus Armbruster
Did this series fall through the cracks for 6.1?
Missed 6.1. What now?
Patches still apply onto master. Please let me know if I should change anything, or provide backports for 6.1.
Thanks,
Jean
Quoted 5 lines · Markus Armbruster
Quoted 1 line · Markus Armbruster
Did this series fall through the cracks for 6.1?
Missed 6.1. What now?
If I understand this correctly, it's a regression in 6.1. Paolo, please advise on what should be done.
Quoted 38 lines
Quoted 38 lines
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Hi Paolo, Peter,
Quoted 10 lines · Markus Armbruster
Quoted 5 lines · Markus Armbruster
Quoted 1 line · Markus Armbruster
Did this series fall through the cracks for 6.1?
Missed 6.1. What now?
If I understand this correctly, it's a regression in 6.1. Paolo, please advise on what should be done.
Can we get those 2 fixes merged?
Maybe we should also add
Cc: [email protected]
If so is there a chance the fix gets backported to 6.1?
Thanks
Eric
Quoted 41 lines
Quoted 39 lines
Quoted 39 lines
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Quoted 10 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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
Quoted 6 lines
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")Signed-off-by Jean-Philippe Brucker <[email protected]>
Thanks
Eric
Quoted 22 lines
--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Peter, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged. I'll ask the i386/pc maintainers to do the same for PATCH 2.
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Hi Markus,
Quoted 4 lines · Markus Armbruster
Peter, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged. I'll ask the i386/pc maintainers to do the same for PATCH 2.
Both fixes have been merged in v6.2 (9dad363a223d and 739b38630c45)
Thanks,
Jean
Quoted 40 lines
Quoted 36 lines · Jean-Philippe Brucker
Since commit
d8fb7d0969d5("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, becausekeyval_dashify()transforms them to dashes and the parser doesn't find the parameter.This affects option
default_bus_bypass_iommuwhich 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 foundRename 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")Signed-off-by Jean-Philippe Brucker <[email protected]>--- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/arm/virt.c +2
-2@@ -2671,10 +2671,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" );
Quoted 9 lines · Jean-Philippe Brucker
Hi Markus,
Quoted 4 lines · Markus Armbruster
Peter, this patch fixes a bug that became a regression when the fix missed 6.1. It's been stuck on the list since August. Please have a look, and if it's good, get it merged. I'll ask the i386/pc maintainers to do the same for PATCH 2.
Both fixes have been merged in v6.2 (
9dad363a223dand739b38630c45)
I'm cross-eyed this morning. Thanks!