arm: Add an option to turn on/off vPMU support
commit929e754d5a621cd53f30e69b766ccf381b58d124
authorWei Huang <wei@redhat.com>
Fri, 28 Oct 2016 13:12:31 +0000 (28 14:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Oct 2016 14:51:27 +0000 (28 15:51 +0100)
treec45dfc88a52151503499de05df746d39e7c3d99b
parentd1df5cf3634af7003951d23164f349e360ecb601
arm: Add an option to turn on/off vPMU support

This patch adds a pmu=[on/off] option to enable/disable vPMU support
in guest vCPU. It allows virt tools, such as libvirt, to determine the
exsitence of vPMU and configure it. Note this option is only available
for cortex-a57/cortex-53/ host CPUs, but unavailable on ARMv7 and other
processors. Also even though "pmu=" option is available for TCG mode,
setting it doesn't turn PMU on.

Signed-off-by: Wei Huang <wei@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1477463301-17175-2-git-send-email-wei@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c
hw/arm/virt.c
target-arm/cpu.c
target-arm/cpu.h
target-arm/cpu64.c
target-arm/kvm64.c