[PATCH] hw/arm/virt: Add 5.0 HW compat props

Andrew Jones posted 1 patch 3 years, 11 months ago
Test FreeBSD passed
Test asan passed
Test docker-quick@centos7 passed
Test checkpatch passed
Test docker-mingw@fedora passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200616140803.25515-1-drjones@redhat.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] hw/arm/virt: Add 5.0 HW compat props
Posted by Andrew Jones 3 years, 11 months ago
Cc: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 hw/arm/virt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index caceb1e4a05f..8b6e6aa7b138 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2375,6 +2375,7 @@ DEFINE_VIRT_MACHINE_AS_LATEST(5, 1)
 static void virt_machine_5_0_options(MachineClass *mc)
 {
     virt_machine_5_1_options(mc);
+    compat_props_add(mc->compat_props, hw_compat_5_0, hw_compat_5_0_len);
 }
 DEFINE_VIRT_MACHINE(5, 0)
 
-- 
2.25.4


Re: [PATCH] hw/arm/virt: Add 5.0 HW compat props
Posted by Peter Maydell 3 years, 11 months ago
On Tue, 16 Jun 2020 at 15:08, Andrew Jones <drjones@redhat.com> wrote:
>
> Cc: Cornelia Huck <cohuck@redhat.com>
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  hw/arm/virt.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index caceb1e4a05f..8b6e6aa7b138 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -2375,6 +2375,7 @@ DEFINE_VIRT_MACHINE_AS_LATEST(5, 1)
>  static void virt_machine_5_0_options(MachineClass *mc)
>  {
>      virt_machine_5_1_options(mc);
> +    compat_props_add(mc->compat_props, hw_compat_5_0, hw_compat_5_0_len);
>  }
>  DEFINE_VIRT_MACHINE(5, 0)



Applied to target-arm.next, thanks.

-- PMM

Re: [PATCH] hw/arm/virt: Add 5.0 HW compat props
Posted by Cornelia Huck 3 years, 11 months ago
On Tue, 16 Jun 2020 16:08:03 +0200
Andrew Jones <drjones@redhat.com> wrote:

Fixes: 541aaa1df80d ("hw: add compat machines for 5.1")

> Cc: Cornelia Huck <cohuck@redhat.com>
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  hw/arm/virt.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index caceb1e4a05f..8b6e6aa7b138 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -2375,6 +2375,7 @@ DEFINE_VIRT_MACHINE_AS_LATEST(5, 1)
>  static void virt_machine_5_0_options(MachineClass *mc)
>  {
>      virt_machine_5_1_options(mc);
> +    compat_props_add(mc->compat_props, hw_compat_5_0, hw_compat_5_0_len);
>  }
>  DEFINE_VIRT_MACHINE(5, 0)
>  

Reviewed-by: Cornelia Huck <cohuck@redhat.com>