cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
28f2e1
From 07e2094cd86c1be349c0bdda69acd1857afacb66 Mon Sep 17 00:00:00 2001
28f2e1
From: Eric Auger <eric.auger@redhat.com>
28f2e1
Date: Mon, 20 Dec 2021 16:04:59 +0100
28f2e1
Subject: [PATCH 2/6] hw/arm/virt: Register "its" as a class property
28f2e1
28f2e1
RH-Author: Eric Auger <eric.auger@redhat.com>
28f2e1
RH-MergeRequest: 95: hw/arm/virt: Add virt-rhel8.6.0 machine type
28f2e1
RH-Commit: [2/5] 4ddfa57495578127770f93689c4d9f111a12b91c
28f2e1
RH-Bugzilla: 2031039
28f2e1
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
28f2e1
RH-Acked-by: Andrew Jones <drjones@redhat.com>
28f2e1
RH-Acked-by: Gavin Shan <gshan@redhat.com>
28f2e1
28f2e1
branch: rhel-8.6.0
28f2e1
Brew: 42212069
28f2e1
Upstream: no
28f2e1
28f2e1
Register "its" as a class property.  This mirrors what was done
28f2e1
in commit 27edeeaafe43 ("virt: Register "its" as class property").
28f2e1
28f2e1
Signed-off-by: Eric Auger <eric.auger@redhat.com>
28f2e1
---
28f2e1
 hw/arm/virt.c | 11 ++++++-----
28f2e1
 1 file changed, 6 insertions(+), 5 deletions(-)
28f2e1
28f2e1
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
28f2e1
index 684ffce52e..d679391eb0 100644
28f2e1
--- a/hw/arm/virt.c
28f2e1
+++ b/hw/arm/virt.c
28f2e1
@@ -3143,6 +3143,12 @@ static void rhel_machine_class_init(ObjectClass *oc, void *data)
28f2e1
                                           "Set on/off to enable/disable "
28f2e1
                                           "bypass_iommu for default root bus");
28f2e1
 
28f2e1
+    object_class_property_add_bool(oc, "its", virt_get_its,
28f2e1
+                                   virt_set_its);
28f2e1
+    object_class_property_set_description(oc, "its",
28f2e1
+                                          "Set on/off to enable/disable "
28f2e1
+                                          "ITS instantiation");
28f2e1
+
28f2e1
     object_class_property_add_str(oc, "x-oem-id",
28f2e1
                                   virt_get_oem_id,
28f2e1
                                   virt_set_oem_id);
28f2e1
@@ -3182,11 +3188,6 @@ static void rhel_virt_instance_init(Object *obj)
28f2e1
     } else {
28f2e1
         /* Default allows ITS instantiation */
28f2e1
         vms->its = true;
28f2e1
-        object_property_add_bool(obj, "its", virt_get_its,
28f2e1
-                                 virt_set_its);
28f2e1
-        object_property_set_description(obj, "its",
28f2e1
-                                        "Set on/off to enable/disable "
28f2e1
-                                        "ITS instantiation");
28f2e1
     }
28f2e1
 
28f2e1
     /* Default disallows iommu instantiation */
28f2e1
-- 
28f2e1
2.27.0
28f2e1