[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v17 01/10] hw/arm/virt: Add RAS platform version for
From: |
Dongjiu Geng |
Subject: |
[Qemu-devel] [PATCH v17 01/10] hw/arm/virt: Add RAS platform version for migration |
Date: |
Tue, 14 May 2019 04:18:14 -0700 |
Support this feature since version 4.1, disable it by
default in the old version.
Signed-off-by: Dongjiu Geng <address@hidden>
---
hw/arm/virt.c | 6 ++++++
include/hw/arm/virt.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 5331ab7..7bdd41b 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2043,8 +2043,14 @@ DEFINE_VIRT_MACHINE_AS_LATEST(4, 1)
static void virt_machine_4_0_options(MachineClass *mc)
{
+ VirtMachineClass *vmc = VIRT_MACHINE_CLASS(OBJECT_CLASS(mc));
+
virt_machine_4_1_options(mc);
compat_props_add(mc->compat_props, hw_compat_4_0, hw_compat_4_0_len);
+ /* Disable memory recovery feature for 4.0 as RAS support was
+ * introduced with 4.1.
+ */
+ vmc->no_ras = true;
}
DEFINE_VIRT_MACHINE(4, 0)
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index 4240709..7f1a033 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -104,6 +104,7 @@ typedef struct {
bool disallow_affinity_adjustment;
bool no_its;
bool no_pmu;
+ bool no_ras;
bool claim_edge_triggered_timers;
bool smbios_old_sys_ver;
bool no_highmem_ecam;
--
1.8.3.1
- [Qemu-devel] [PATCH v17 00/10] Add ARMv8 RAS virtualization support in QEMU, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 01/10] hw/arm/virt: Add RAS platform version for migration,
Dongjiu Geng <=
- [Qemu-devel] [PATCH v17 02/10] ACPI: add some GHES structures and macros definition, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 03/10] acpi: add build_append_ghes_notify() helper for Hardware Error Notification, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 05/10] acpi: add build_append_ghes_generic_status() helper for Generic Error Status Block, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 04/10] acpi: add build_append_ghes_generic_data() helper for Generic Error Data Entry, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 09/10] target-arm: kvm64: inject synchronous External Abort, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 10/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 06/10] docs: APEI GHES generation and CPER record description, Dongjiu Geng, 2019/05/14
- [Qemu-devel] [PATCH v17 08/10] KVM: Move related hwpoison page functions to accel/kvm/ folder, Dongjiu Geng, 2019/05/14