From: Tushar Jagad <tushar.jagad@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, marc.zyngier@arm.com, patches@apm.com,
tushar.jagad@linaro.org, kvmarm@lists.cs.columbia.edu,
christoffer.dall@linaro.org
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 [thread overview]
Message-ID: <1441788132-6286-3-git-send-email-tushar.jagad@linaro.org> (raw)
In-Reply-To: <1441788132-6286-1-git-send-email-tushar.jagad@linaro.org>
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 --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
next prev parent reply other threads:[~2015-09-09 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 8:42 [Qemu-devel] [PATCH RFC 0/3] arm64: cross cpu support Tushar Jagad
2015-09-09 8:42 ` [Qemu-devel] [PATCH RFC 1/3] linux-headers: sync'd kernel headers for arm/arm64 Tushar Jagad
2015-09-09 8:42 ` Tushar Jagad [this message]
2015-09-09 8:42 ` [Qemu-devel] [PATCH RFC 3/3] arm64: pass breakpoint/watchpoint info for target cpu Tushar Jagad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441788132-6286-3-git-send-email-tushar.jagad@linaro.org \
--to=tushar.jagad@linaro.org \
--cc=christoffer.dall@linaro.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=marc.zyngier@arm.com \
--cc=patches@apm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).