diff mbox series

[3/3] hw/arm/virt: Disable memory hotplug when MTE is enabled

Message ID 20200713213341.590275-4-richard.henderson@linaro.org
State Superseded
Headers show
Series target/arm: MTE improvements | expand

Commit Message

Richard Henderson July 13, 2020, 9:33 p.m. UTC
When MTE is enabled, tag memory must exist for all RAM.

It might be possible to simultaneously hot plug tag memory
alongside the corresponding normal memory, but for now just
disable hotplug.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 hw/arm/virt.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.25.1
diff mbox series

Patch

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index a7f3d442db..ecfee362a1 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2194,6 +2194,11 @@  static void virt_memory_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
         return;
     }
 
+    if (vms->mte) {
+        error_setg(errp, "memory hotplug is not enabled: MTE is enabled");
+        return;
+    }
+
     if (is_nvdimm && !ms->nvdimms_state->is_enabled) {
         error_setg(errp, "nvdimm is not enabled: add 'nvdimm=on' to '-M'");
         return;