All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmport: move compat properties to hw_compat_5_0
@ 2020-06-23 10:28 Paolo Bonzini
  2020-06-23 10:33 ` Laurent Vivier
  2020-06-23 11:02 ` Liran Alon
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2020-06-23 10:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier, Liran Alon

The patches that introduced the properties were submitted when QEMU 5.0
had not been released yet, so they got merged under the wrong heading.
Move them to hw_compat_5_0 so that 5.0 machine types get the pre-patch
behavior.

Reported-by: Laurent Vivier <lvivier@redhat.com>
Cc: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/core/machine.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/core/machine.c b/hw/core/machine.c
index 1d80ab0e1d..211b4e077a 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -30,6 +30,10 @@
 
 GlobalProperty hw_compat_5_0[] = {
     { "virtio-balloon-device", "page-poison", "false" },
+    { "vmport", "x-read-set-eax", "off" },
+    { "vmport", "x-signal-unsupported-cmd", "off" },
+    { "vmport", "x-report-vmx-type", "off" },
+    { "vmport", "x-cmds-v2", "off" },
 };
 const size_t hw_compat_5_0_len = G_N_ELEMENTS(hw_compat_5_0);
 
@@ -45,10 +49,6 @@ GlobalProperty hw_compat_4_2[] = {
     { "qxl", "revision", "4" },
     { "qxl-vga", "revision", "4" },
     { "fw_cfg", "acpi-mr-restore", "false" },
-    { "vmport", "x-read-set-eax", "off" },
-    { "vmport", "x-signal-unsupported-cmd", "off" },
-    { "vmport", "x-report-vmx-type", "off" },
-    { "vmport", "x-cmds-v2", "off" },
 };
 const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
 
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] vmport: move compat properties to hw_compat_5_0
  2020-06-23 10:28 [PATCH] vmport: move compat properties to hw_compat_5_0 Paolo Bonzini
@ 2020-06-23 10:33 ` Laurent Vivier
  2020-06-23 11:02 ` Liran Alon
  1 sibling, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2020-06-23 10:33 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: Liran Alon

On 23/06/2020 12:28, Paolo Bonzini wrote:
> The patches that introduced the properties were submitted when QEMU 5.0
> had not been released yet, so they got merged under the wrong heading.
> Move them to hw_compat_5_0 so that 5.0 machine types get the pre-patch
> behavior.
> 
> Reported-by: Laurent Vivier <lvivier@redhat.com>
> Cc: Liran Alon <liran.alon@oracle.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Fixes: b889212973da ("hw/i386/vmport: Propagate IOPort read to vCPU EAX
register")
Fixes: 0342ee761ef2 ("hw/i386/vmport: Set EAX to -1 on failed and
unsupported commands")
Fixes: f8bdc550370f ("hw/i386/vmport: Report vmware-vmx-type in
CMD_GETVERSION")
Fixes: aaacf1c15a22 ("hw/i386/vmport: Add support for CMD_GETBIOSUUID")

> ---
>  hw/core/machine.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/hw/core/machine.c b/hw/core/machine.c
> index 1d80ab0e1d..211b4e077a 100644
> --- a/hw/core/machine.c
> +++ b/hw/core/machine.c
> @@ -30,6 +30,10 @@
>  
>  GlobalProperty hw_compat_5_0[] = {
>      { "virtio-balloon-device", "page-poison", "false" },
> +    { "vmport", "x-read-set-eax", "off" },
> +    { "vmport", "x-signal-unsupported-cmd", "off" },
> +    { "vmport", "x-report-vmx-type", "off" },
> +    { "vmport", "x-cmds-v2", "off" },
>  };
>  const size_t hw_compat_5_0_len = G_N_ELEMENTS(hw_compat_5_0);
>  
> @@ -45,10 +49,6 @@ GlobalProperty hw_compat_4_2[] = {
>      { "qxl", "revision", "4" },
>      { "qxl-vga", "revision", "4" },
>      { "fw_cfg", "acpi-mr-restore", "false" },
> -    { "vmport", "x-read-set-eax", "off" },
> -    { "vmport", "x-signal-unsupported-cmd", "off" },
> -    { "vmport", "x-report-vmx-type", "off" },
> -    { "vmport", "x-cmds-v2", "off" },
>  };
>  const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
>  
> 

Reviewed-by: Laurent Vivier <lvivier@redhat.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] vmport: move compat properties to hw_compat_5_0
  2020-06-23 10:28 [PATCH] vmport: move compat properties to hw_compat_5_0 Paolo Bonzini
  2020-06-23 10:33 ` Laurent Vivier
@ 2020-06-23 11:02 ` Liran Alon
  1 sibling, 0 replies; 3+ messages in thread
From: Liran Alon @ 2020-06-23 11:02 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: Laurent Vivier


On 23/06/2020 13:28, Paolo Bonzini wrote:
> The patches that introduced the properties were submitted when QEMU 5.0
> had not been released yet, so they got merged under the wrong heading.
> Move them to hw_compat_5_0 so that 5.0 machine types get the pre-patch
> behavior.
>
> Reported-by: Laurent Vivier <lvivier@redhat.com>
> Cc: Liran Alon <liran.alon@oracle.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
> ---
>   hw/core/machine.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/hw/core/machine.c b/hw/core/machine.c
> index 1d80ab0e1d..211b4e077a 100644
> --- a/hw/core/machine.c
> +++ b/hw/core/machine.c
> @@ -30,6 +30,10 @@
>   
>   GlobalProperty hw_compat_5_0[] = {
>       { "virtio-balloon-device", "page-poison", "false" },
> +    { "vmport", "x-read-set-eax", "off" },
> +    { "vmport", "x-signal-unsupported-cmd", "off" },
> +    { "vmport", "x-report-vmx-type", "off" },
> +    { "vmport", "x-cmds-v2", "off" },
>   };
>   const size_t hw_compat_5_0_len = G_N_ELEMENTS(hw_compat_5_0);
>   
> @@ -45,10 +49,6 @@ GlobalProperty hw_compat_4_2[] = {
>       { "qxl", "revision", "4" },
>       { "qxl-vga", "revision", "4" },
>       { "fw_cfg", "acpi-mr-restore", "false" },
> -    { "vmport", "x-read-set-eax", "off" },
> -    { "vmport", "x-signal-unsupported-cmd", "off" },
> -    { "vmport", "x-report-vmx-type", "off" },
> -    { "vmport", "x-cmds-v2", "off" },
>   };
>   const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
>   


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-23 11:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 10:28 [PATCH] vmport: move compat properties to hw_compat_5_0 Paolo Bonzini
2020-06-23 10:33 ` Laurent Vivier
2020-06-23 11:02 ` Liran Alon

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.