From: Wei Huang <wei@redhat.com>
To: qemu-arm@nongnu.org
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org,
drjones@redhat.com, shannon.zhao@linaro.org, abologna@redhat.com
Subject: [Qemu-devel] [PATCH V2 0/2] Add option to configure guest vPMU
Date: Wed, 14 Sep 2016 02:09:01 -0400 [thread overview]
Message-ID: <1473833343-31531-1-git-send-email-wei@redhat.com> (raw)
This patchset adds a pmu=[on/off] option to enable/disable vPMU support
for guest VM. There are several reasons to justify this option. First,
vPMU can be problematic for cross-migration between different SoC as perf
counters are architecture-dependent. It is more flexible to have an option
to turn it on/off. Secondly Secondly this option matches the "pmu" option
as supported in libvirt. To make sure backward compatible, a PMU property
is added to mach-virt machine types.
V1->V2:
* keep the original field name as "has_pmu"
* add a warning message when PMU is turned on without KVM
* use the feature bit to check PMU availability, instead of using has_pmu
* add PMU compat support to mach-virt machine type
RFC->V1:
* set default pmu=off
* change struct ARMCPU field name "has_pmu" ==> "has_host_pmu"
* like el3, add a new feature ARM_FEATURE_HOST_PMU
* "pmu" property becomes CPU dependent. Only cortex-a53/cortex-a57/host
running on kvm supports this option.
-Wei
Wei Huang (2):
arm64: Add an option to turn on/off vPMU support
arm: virt: add PMU property to machvirt machine type
hw/arm/virt-acpi-build.c | 2 +-
hw/arm/virt.c | 14 +++++++++++++-
target-arm/cpu.c | 22 ++++++++++++++++++++++
target-arm/cpu.h | 1 +
target-arm/cpu64.c | 2 ++
target-arm/kvm64.c | 17 +++++++++++++----
6 files changed, 52 insertions(+), 6 deletions(-)
--
1.8.3.1
next reply other threads:[~2016-09-14 6:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 6:09 Wei Huang [this message]
2016-09-14 6:09 ` [Qemu-devel] [PATCH V2 1/2] arm64: Add an option to turn on/off vPMU support Wei Huang
2016-09-14 8:17 ` Andrew Jones
2016-09-14 14:53 ` Wei Huang
2016-09-14 6:09 ` [Qemu-devel] [PATCH V2 2/2] arm: virt: add PMU property to machvirt machine type Wei Huang
2016-09-14 8:37 ` Andrew Jones
2016-09-14 8:53 ` Andrew Jones
2016-09-14 15:09 ` Wei Huang
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=1473833343-31531-1-git-send-email-wei@redhat.com \
--to=wei@redhat.com \
--cc=abologna@redhat.com \
--cc=drjones@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.