qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFC 2/3] arm: cross cpu: add new properties for arm


From: Tushar Jagad
Subject: [Qemu-devel] [PATCH RFC 2/3] arm: cross cpu: add new properties for arm cpu
Date: Wed, 9 Sep 2015 08:42:11 +0000

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 <address@hidden>
---
 target-arm/cpu.c | 2 ++
 1 file changed, 2 insertions(+)

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()
 };
 
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]