diff options
author | Wei Huang | 2016-10-28 15:12:31 +0200 |
---|---|---|
committer | Peter Maydell | 2016-10-28 16:51:27 +0200 |
commit | 929e754d5a621cd53f30e69b766ccf381b58d124 (patch) | |
tree | c45dfc88a52151503499de05df746d39e7c3d99b /target-arm/cpu.h | |
parent | char: cadence: correct reset value for baud rate registers (diff) | |
download | qemu-929e754d5a621cd53f30e69b766ccf381b58d124.tar.gz qemu-929e754d5a621cd53f30e69b766ccf381b58d124.tar.xz qemu-929e754d5a621cd53f30e69b766ccf381b58d124.zip |
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>
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r-- | target-arm/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 19d967b69e..ca5c849ed6 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -1124,6 +1124,7 @@ enum arm_features { ARM_FEATURE_V8_SHA256, /* implements SHA256 part of v8 Crypto Extensions */ ARM_FEATURE_V8_PMULL, /* implements PMULL part of v8 Crypto Extensions */ ARM_FEATURE_THUMB_DSP, /* DSP insns supported in the Thumb encodings */ + ARM_FEATURE_PMU, /* has PMU support */ }; static inline int arm_feature(CPUARMState *env, int feature) |