|
|
a83cc2 |
From 29d18bdaf3dad52a052b2b058cd8f74652a72f76 Mon Sep 17 00:00:00 2001
|
|
|
a83cc2 |
From: Eric Auger <eric.auger@redhat.com>
|
|
|
a83cc2 |
Date: Thu, 8 Jul 2021 05:14:47 -0400
|
|
|
a83cc2 |
Subject: [PATCH 02/13] arm/virt: Register its as a class property
|
|
|
a83cc2 |
|
|
|
a83cc2 |
RH-Author: Eric Auger <eric.auger@redhat.com>
|
|
|
a83cc2 |
RH-MergeRequest: 19: arm/virt: Support RAS
|
|
|
a83cc2 |
RH-Commit: [2/3] 95debacfd59d06ed2dcaeb120b20a280ff515434 (eauger1/centos-qemu-kvm)
|
|
|
a83cc2 |
RH-Bugzilla: 1838608
|
|
|
a83cc2 |
RH-Acked-by: Gavin Shan <gshan@redhat.com>
|
|
|
a83cc2 |
RH-Acked-by: Andrew Jones <drjones@redhat.com>
|
|
|
a83cc2 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
a83cc2 |
|
|
|
a83cc2 |
As done for highmem, gic-version, iommu, let's register the its property
|
|
|
a83cc2 |
as a class property. This is closer to the upstream code. This
|
|
|
a83cc2 |
change was originally made by upstream commit:
|
|
|
a83cc2 |
b91def7b8382 ("arm/virt: Register most properties as class properties")
|
|
|
a83cc2 |
|
|
|
a83cc2 |
Signed-off-by: Eric Auger <eric.auger@redhat.com>
|
|
|
a83cc2 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a83cc2 |
---
|
|
|
a83cc2 |
hw/arm/virt.c | 11 ++++++-----
|
|
|
a83cc2 |
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
a83cc2 |
|
|
|
a83cc2 |
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
|
|
a83cc2 |
index bdae24a753..fe1111d527 100644
|
|
|
a83cc2 |
--- a/hw/arm/virt.c
|
|
|
a83cc2 |
+++ b/hw/arm/virt.c
|
|
|
a83cc2 |
@@ -3013,6 +3013,12 @@ static void rhel_machine_class_init(ObjectClass *oc, void *data)
|
|
|
a83cc2 |
"Set the IOMMU type. "
|
|
|
a83cc2 |
"Valid values are none and smmuv3");
|
|
|
a83cc2 |
|
|
|
a83cc2 |
+ object_class_property_add_bool(oc, "its", virt_get_its,
|
|
|
a83cc2 |
+ virt_set_its);
|
|
|
a83cc2 |
+ object_class_property_set_description(oc, "its",
|
|
|
a83cc2 |
+ "Set on/off to enable/disable "
|
|
|
a83cc2 |
+ "ITS instantiation");
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
object_class_property_add_str(oc, "x-oem-id",
|
|
|
a83cc2 |
virt_get_oem_id,
|
|
|
a83cc2 |
virt_set_oem_id);
|
|
|
a83cc2 |
@@ -3052,11 +3058,6 @@ static void rhel_virt_instance_init(Object *obj)
|
|
|
a83cc2 |
} else {
|
|
|
a83cc2 |
/* Default allows ITS instantiation */
|
|
|
a83cc2 |
vms->its = true;
|
|
|
a83cc2 |
- object_property_add_bool(obj, "its", virt_get_its,
|
|
|
a83cc2 |
- virt_set_its);
|
|
|
a83cc2 |
- object_property_set_description(obj, "its",
|
|
|
a83cc2 |
- "Set on/off to enable/disable "
|
|
|
a83cc2 |
- "ITS instantiation");
|
|
|
a83cc2 |
}
|
|
|
a83cc2 |
|
|
|
a83cc2 |
/* Default disallows iommu instantiation */
|
|
|
a83cc2 |
--
|
|
|
a83cc2 |
2.27.0
|
|
|
a83cc2 |
|