From: Pavel Fedin
Date: Fri, 17 Jun 2016 14:23:46 +0000 (+0100)
Subject: target-arm: Add mp-affinity property for ARM CPU class
X-Git-Tag: v2.7.0-rc0~110^2~17
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15a21fe028d6475e259a6a9d31ca4878cca3dc75;p=thirdparty%2Fqemu.git
target-arm: Add mp-affinity property for ARM CPU class
This allows to override default affinity IDs on a per-machine basis, and
possibility to retrieve IDs will be used by vGICv3 live migration code.
Signed-off-by: Pavel Fedin
Signed-off-by: Peter Maydell
Reviewed-by: Shannon Zhao
Tested-by: Shannon Zhao
Message-id: 1465915112-29272-6-git-send-email-peter.maydell@linaro.org
---
diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 0eaa9078487..ce8b8f4a5ba 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -1415,6 +1415,7 @@ static Property arm_cpu_properties[] = {
DEFINE_PROP_BOOL("start-powered-off", ARMCPU, start_powered_off, false),
DEFINE_PROP_UINT32("psci-conduit", ARMCPU, psci_conduit, 0),
DEFINE_PROP_UINT32("midr", ARMCPU, midr, 0),
+ DEFINE_PROP_UINT64("mp-affinity", ARMCPU, mp_affinity, 0),
DEFINE_PROP_END_OF_LIST()
};