|
|
495e37 |
From 914d9f9eea5d0a944aa93682b03d3189ad37ec9b Mon Sep 17 00:00:00 2001
|
|
|
495e37 |
From: Eric Auger <eric.auger@redhat.com>
|
|
|
495e37 |
Date: Mon, 20 Dec 2021 15:34:22 +0100
|
|
|
495e37 |
Subject: [PATCH 4/6] hw/arm/virt: Expose the 'RAS' option
|
|
|
495e37 |
|
|
|
495e37 |
RH-Author: Eric Auger <eric.auger@redhat.com>
|
|
|
495e37 |
RH-MergeRequest: 57: hw/arm/virt: Add 9.0 machine type and remove 8.5 one
|
|
|
495e37 |
RH-Commit: [4/6] c8704564d31b23a0f08a6ced946c9a81e2e72c11 (eauger1/centos-qemu-kvm)
|
|
|
495e37 |
RH-Bugzilla: 2031044
|
|
|
495e37 |
RH-Acked-by: Gavin Shan <gshan@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Andrew Jones <drjones@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
495e37 |
|
|
|
495e37 |
branch: c9s
|
|
|
495e37 |
Brew: 42213566
|
|
|
495e37 |
Upstream: no
|
|
|
495e37 |
|
|
|
495e37 |
In RHEL9.0 we want to expose the 'RAS' option.
|
|
|
495e37 |
|
|
|
495e37 |
Signed-off-by: Eric Auger <eric.auger@redhat.com>
|
|
|
495e37 |
---
|
|
|
495e37 |
hw/arm/virt.c | 8 +++++++-
|
|
|
495e37 |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
495e37 |
|
|
|
495e37 |
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
|
|
495e37 |
index c99ca93e75..d433139479 100644
|
|
|
495e37 |
--- a/hw/arm/virt.c
|
|
|
495e37 |
+++ b/hw/arm/virt.c
|
|
|
495e37 |
@@ -2348,7 +2348,6 @@ static void virt_set_acpi(Object *obj, Visitor *v, const char *name,
|
|
|
495e37 |
visit_type_OnOffAuto(v, name, &vms->acpi, errp);
|
|
|
495e37 |
}
|
|
|
495e37 |
|
|
|
495e37 |
-#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
495e37 |
static bool virt_get_ras(Object *obj, Error **errp)
|
|
|
495e37 |
{
|
|
|
495e37 |
VirtMachineState *vms = VIRT_MACHINE(obj);
|
|
|
495e37 |
@@ -2363,6 +2362,7 @@ static void virt_set_ras(Object *obj, bool value, Error **errp)
|
|
|
495e37 |
vms->ras = value;
|
|
|
495e37 |
}
|
|
|
495e37 |
|
|
|
495e37 |
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
495e37 |
static bool virt_get_mte(Object *obj, Error **errp)
|
|
|
495e37 |
{
|
|
|
495e37 |
VirtMachineState *vms = VIRT_MACHINE(obj);
|
|
|
495e37 |
@@ -3143,6 +3143,12 @@ static void rhel_machine_class_init(ObjectClass *oc, void *data)
|
|
|
495e37 |
"Set on/off to enable/disable "
|
|
|
495e37 |
"bypass_iommu for default root bus");
|
|
|
495e37 |
|
|
|
495e37 |
+ object_class_property_add_bool(oc, "ras", virt_get_ras,
|
|
|
495e37 |
+ virt_set_ras);
|
|
|
495e37 |
+ object_class_property_set_description(oc, "ras",
|
|
|
495e37 |
+ "Set on/off to enable/disable reporting host memory errors "
|
|
|
495e37 |
+ "to a KVM guest using ACPI and guest external abort exceptions");
|
|
|
495e37 |
+
|
|
|
495e37 |
object_class_property_add_bool(oc, "its", virt_get_its,
|
|
|
495e37 |
virt_set_its);
|
|
|
495e37 |
object_class_property_set_description(oc, "its",
|
|
|
495e37 |
--
|
|
|
495e37 |
2.27.0
|
|
|
495e37 |
|