diff mbox

[RFC,2/3] arm: cross cpu: add new properties for arm cpu

Message ID 1441788132-6286-3-git-send-email-tushar.jagad@linaro.org
State New
Headers show

Commit Message

Tushar Jagad Sept. 9, 2015, 8:42 a.m. UTC
In order to support cross cpu for arm certain properties should be defined
by the datacenter admin. This is necessary for migrating guests to different
hardware platforms. CPU properties like number of breakpoints, watchpoints
and pmu counters are implementation specific. We need to restrict the guest
kernel to a specific count considering different mix of hardware platforms
in the datacenter.

This patch adds new properties for defining hardware in terms of number of
breakpoints, watchpoints and pmu counters supported in the guest.

Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org>
---
 target-arm/cpu.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 8b4323d..a07613e 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -1349,6 +1349,8 @@  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_UINT32("bpts", ARMCPU, bpts, 0),
+    DEFINE_PROP_UINT32("wpts", ARMCPU, wpts, 0),
     DEFINE_PROP_END_OF_LIST()
 };