qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V3 0/2] Add option to configure guest vPMU
@ 2016-09-15  5:04 Wei Huang
  2016-09-15  5:04 ` [Qemu-devel] [PATCH V3 1/2] arm64: Add an option to turn on/off vPMU support Wei Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wei Huang @ 2016-09-15  5:04 UTC (permalink / raw)
  To: qemu-arm; +Cc: qemu-devel, peter.maydell, drjones, shannon.zhao, abologna

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.

V2->V3:
  * revise patch 1 commit msg and if-else statement (Drew) 
  * move property field into VirtMachineClass (Drew)

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 mach-virt machine type

 hw/arm/virt-acpi-build.c |  2 +-
 hw/arm/virt.c            | 15 ++++++++++++++-
 target-arm/cpu.c         | 22 ++++++++++++++++++++++
 target-arm/cpu.h         |  1 +
 target-arm/cpu64.c       |  2 ++
 target-arm/kvm64.c       | 19 +++++++++++++++----
 6 files changed, 55 insertions(+), 6 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-09-16 16:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-15  5:04 [Qemu-devel] [PATCH V3 0/2] Add option to configure guest vPMU Wei Huang
2016-09-15  5:04 ` [Qemu-devel] [PATCH V3 1/2] arm64: Add an option to turn on/off vPMU support Wei Huang
2016-09-15  7:13   ` Andrew Jones
2016-09-15  5:04 ` [Qemu-devel] [PATCH V3 2/2] arm: virt: add PMU property to mach-virt machine type Wei Huang
2016-09-15  7:18   ` Andrew Jones
2016-09-16 12:29 ` [Qemu-devel] [PATCH V3 0/2] Add option to configure guest vPMU Andrea Bolognani
2016-09-16 16:04   ` Wei Huang

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).