arm: virt: add PMU property to mach-virt machine type
commit1141d1eb572015c4664788297ca355b278194e9c
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)
treede7662d5bedb8ab6a48ba196ba2b0a67ffaa0541
parent929e754d5a621cd53f30e69b766ccf381b58d124
arm: virt: add PMU property to mach-virt machine type

CPU vPMU is now turned ON by default, but this feature wasn't introduced
until virt-2.7 machine type. To solve this problem, this patch adds a
PMU option in machine state, which is used to control CPU's vPMU status.
This PMU option is not exposed to command line and is turned off in
virt-2.6 machine type.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Wei Huang <wei@redhat.com>
Message-id: 1477463301-17175-3-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.c