* [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
@ 2021-08-11 8:58 Jean-Philippe Brucker
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
` (3 more replies)
0 siblings, 4 replies; 15+ messages in thread
From: Jean-Philippe Brucker @ 2021-08-11 8:58 UTC (permalink / raw)
To: pbonzini; +Cc: Jean-Philippe Brucker, armbru, qemu-devel
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")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
hw/arm/virt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index b4598d3fe6..7075cdc15e 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -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");
--
2.32.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
2021-08-11 8:58 [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Jean-Philippe Brucker
@ 2021-08-11 8:58 ` Jean-Philippe Brucker
2021-10-05 17:08 ` Eric Auger
2021-11-25 7:12 ` Markus Armbruster
2021-08-24 7:53 ` [PATCH 1/2] hw/arm/virt: " Markus Armbruster
` (2 subsequent siblings)
3 siblings, 2 replies; 15+ messages in thread
From: Jean-Philippe Brucker @ 2021-08-11 8:58 UTC (permalink / raw)
To: pbonzini; +Cc: Jean-Philippe Brucker, armbru, qemu-devel
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.
Fixes: c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
hw/i386/pc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index fb24f000e7..ce4756ad59 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -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);
--
2.32.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-11 8:58 [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Jean-Philippe Brucker
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
@ 2021-08-24 7:53 ` Markus Armbruster
2021-08-25 7:34 ` Markus Armbruster
2021-10-05 17:28 ` Eric Auger
2021-11-25 7:11 ` Markus Armbruster
3 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2021-08-24 7:53 UTC (permalink / raw)
To: Jean-Philippe Brucker; +Cc: pbonzini, qemu-devel
Did this series fall through the cracks for 6.1?
Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
> 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")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> ---
> hw/arm/virt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index b4598d3fe6..7075cdc15e 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -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");
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-24 7:53 ` [PATCH 1/2] hw/arm/virt: " Markus Armbruster
@ 2021-08-25 7:34 ` Markus Armbruster
2021-09-07 18:05 ` Jean-Philippe Brucker
2021-10-02 5:30 ` Markus Armbruster
0 siblings, 2 replies; 15+ messages in thread
From: Markus Armbruster @ 2021-08-25 7:34 UTC (permalink / raw)
To: pbonzini; +Cc: Jean-Philippe Brucker, qemu-devel
Markus Armbruster <armbru@redhat.com> writes:
> Did this series fall through the cracks for 6.1?
Missed 6.1. What now?
> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>
>> 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")
>> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
>> ---
>> hw/arm/virt.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
>> index b4598d3fe6..7075cdc15e 100644
>> --- a/hw/arm/virt.c
>> +++ b/hw/arm/virt.c
>> @@ -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");
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-25 7:34 ` Markus Armbruster
@ 2021-09-07 18:05 ` Jean-Philippe Brucker
2021-10-02 5:30 ` Markus Armbruster
1 sibling, 0 replies; 15+ messages in thread
From: Jean-Philippe Brucker @ 2021-09-07 18:05 UTC (permalink / raw)
To: Markus Armbruster; +Cc: pbonzini, qemu-devel
On Wed, Aug 25, 2021 at 09:34:45AM +0200, Markus Armbruster wrote:
> Markus Armbruster <armbru@redhat.com> writes:
>
> > 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-25 7:34 ` Markus Armbruster
2021-09-07 18:05 ` Jean-Philippe Brucker
@ 2021-10-02 5:30 ` Markus Armbruster
2021-10-05 17:37 ` Eric Auger
1 sibling, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2021-10-02 5:30 UTC (permalink / raw)
To: pbonzini; +Cc: Jean-Philippe Brucker, qemu-devel
Markus Armbruster <armbru@redhat.com> writes:
> Markus Armbruster <armbru@redhat.com> writes:
>
>> 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.
>> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>>
>>> 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")
>>> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
>>> ---
>>> hw/arm/virt.c | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
>>> index b4598d3fe6..7075cdc15e 100644
>>> --- a/hw/arm/virt.c
>>> +++ b/hw/arm/virt.c
>>> @@ -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");
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
@ 2021-10-05 17:08 ` Eric Auger
2021-11-25 7:12 ` Markus Armbruster
1 sibling, 0 replies; 15+ messages in thread
From: Eric Auger @ 2021-10-05 17:08 UTC (permalink / raw)
To: Jean-Philippe Brucker, pbonzini; +Cc: armbru, qemu-devel
On 8/11/21 10:58 AM, Jean-Philippe Brucker wrote:
> 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.
>
> Fixes: c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Eric
> ---
> hw/i386/pc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index fb24f000e7..ce4756ad59 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -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);
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-11 8:58 [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Jean-Philippe Brucker
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
2021-08-24 7:53 ` [PATCH 1/2] hw/arm/virt: " Markus Armbruster
@ 2021-10-05 17:28 ` Eric Auger
2021-11-25 7:11 ` Markus Armbruster
3 siblings, 0 replies; 15+ messages in thread
From: Eric Auger @ 2021-10-05 17:28 UTC (permalink / raw)
To: Jean-Philippe Brucker, pbonzini; +Cc: armbru, qemu-devel
On 8/11/21 10:58 AM, Jean-Philippe Brucker wrote:
> 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")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Thanks
Eric
> ---
> hw/arm/virt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index b4598d3fe6..7075cdc15e 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -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");
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-10-02 5:30 ` Markus Armbruster
@ 2021-10-05 17:37 ` Eric Auger
0 siblings, 0 replies; 15+ messages in thread
From: Eric Auger @ 2021-10-05 17:37 UTC (permalink / raw)
To: Markus Armbruster, pbonzini, Peter Maydell
Cc: Jean-Philippe Brucker, qemu-devel
Hi Paolo, Peter,
On 10/2/21 7:30 AM, Markus Armbruster wrote:
> Markus Armbruster <armbru@redhat.com> writes:
>
>> Markus Armbruster <armbru@redhat.com> writes:
>>
>>> 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: qemu-stable@nongnu.org
If so is there a chance the fix gets backported to 6.1?
Thanks
Eric
>
>>> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>>>
>>>> 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")
>>>> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
>>>> ---
>>>> hw/arm/virt.c | 4 ++--
>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
>>>> index b4598d3fe6..7075cdc15e 100644
>>>> --- a/hw/arm/virt.c
>>>> +++ b/hw/arm/virt.c
>>>> @@ -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");
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-08-11 8:58 [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Jean-Philippe Brucker
` (2 preceding siblings ...)
2021-10-05 17:28 ` Eric Auger
@ 2021-11-25 7:11 ` Markus Armbruster
2021-11-25 7:39 ` Jean-Philippe Brucker
3 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2021-11-25 7:11 UTC (permalink / raw)
To: Peter Maydell; +Cc: pbonzini, qemu-devel, Jean-Philippe Brucker
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.
Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
> 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")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> ---
> hw/arm/virt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index b4598d3fe6..7075cdc15e 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -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");
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
2021-10-05 17:08 ` Eric Auger
@ 2021-11-25 7:12 ` Markus Armbruster
2021-11-25 7:19 ` Michael S. Tsirkin
1 sibling, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2021-11-25 7:12 UTC (permalink / raw)
To: Michael S. Tsirkin, Marcel Apfelbaum; +Cc: pbonzini, qemu-devel
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. I just asked the arm/virt
maintainer to do the same for PATCH 1.
Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
> 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.
>
> Fixes: c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine option")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> ---
> hw/i386/pc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index fb24f000e7..ce4756ad59 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -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);
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
2021-11-25 7:12 ` Markus Armbruster
@ 2021-11-25 7:19 ` Michael S. Tsirkin
2021-11-25 8:56 ` Markus Armbruster
0 siblings, 1 reply; 15+ messages in thread
From: Michael S. Tsirkin @ 2021-11-25 7:19 UTC (permalink / raw)
To: Markus Armbruster; +Cc: pbonzini, qemu-devel
On Thu, Nov 25, 2021 at 08:12:25AM +0100, Markus Armbruster wrote:
> 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.
> I just asked the arm/virt
> maintainer to do the same for PATCH 1.
Some questions below.
> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>
> > 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
I don't see this behaviour. What did I miss?
> > 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 <jean-philippe@linaro.org>
> > ---
> > hw/i386/pc.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> > index fb24f000e7..ce4756ad59 100644
> > --- a/hw/i386/pc.c
> > +++ b/hw/i386/pc.c
> > @@ -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);
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-11-25 7:11 ` Markus Armbruster
@ 2021-11-25 7:39 ` Jean-Philippe Brucker
2021-11-25 8:53 ` Markus Armbruster
0 siblings, 1 reply; 15+ messages in thread
From: Jean-Philippe Brucker @ 2021-11-25 7:39 UTC (permalink / raw)
To: Markus Armbruster; +Cc: Peter Maydell, qemu-devel, pbonzini
Hi Markus,
On Thu, Nov 25, 2021 at 08:11:04AM +0100, Markus Armbruster wrote:
> 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
>
> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>
> > 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")
> > Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> > ---
> > hw/arm/virt.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> > index b4598d3fe6..7075cdc15e 100644
> > --- a/hw/arm/virt.c
> > +++ b/hw/arm/virt.c
> > @@ -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");
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu
2021-11-25 7:39 ` Jean-Philippe Brucker
@ 2021-11-25 8:53 ` Markus Armbruster
0 siblings, 0 replies; 15+ messages in thread
From: Markus Armbruster @ 2021-11-25 8:53 UTC (permalink / raw)
To: Jean-Philippe Brucker; +Cc: Peter Maydell, qemu-devel, pbonzini
Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
> Hi Markus,
>
> On Thu, Nov 25, 2021 at 08:11:04AM +0100, Markus Armbruster wrote:
>> 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)
I'm cross-eyed this morning. Thanks!
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu
2021-11-25 7:19 ` Michael S. Tsirkin
@ 2021-11-25 8:56 ` Markus Armbruster
0 siblings, 0 replies; 15+ messages in thread
From: Markus Armbruster @ 2021-11-25 8:56 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: pbonzini, qemu-devel
"Michael S. Tsirkin" <mst@redhat.com> writes:
> On Thu, Nov 25, 2021 at 08:12:25AM +0100, Markus Armbruster wrote:
>> 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.
>
>> I just asked the arm/virt
>> maintainer to do the same for PATCH 1.
>
> Some questions below.
>
>> Jean-Philippe Brucker <jean-philippe@linaro.org> writes:
>>
>> > 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
>
> I 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!
[...]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2021-11-25 8:58 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 8:58 [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Jean-Philippe Brucker
2021-08-11 8:58 ` [PATCH 2/2] hw/i386: " Jean-Philippe Brucker
2021-10-05 17:08 ` Eric Auger
2021-11-25 7:12 ` Markus Armbruster
2021-11-25 7:19 ` Michael S. Tsirkin
2021-11-25 8:56 ` Markus Armbruster
2021-08-24 7:53 ` [PATCH 1/2] hw/arm/virt: " Markus Armbruster
2021-08-25 7:34 ` Markus Armbruster
2021-09-07 18:05 ` Jean-Philippe Brucker
2021-10-02 5:30 ` Markus Armbruster
2021-10-05 17:37 ` Eric Auger
2021-10-05 17:28 ` Eric Auger
2021-11-25 7:11 ` Markus Armbruster
2021-11-25 7:39 ` Jean-Philippe Brucker
2021-11-25 8:53 ` Markus Armbruster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.