target-arm: kvm64: set guest PMUv3 feature bit if supported

Check if kvm supports guest PMUv3. If so, set the corresponding feature
bit for vcpu.

Backports commit 5c0a3819f009639f67ce0453dff6ec7211bfee54 from qemu
This commit is contained in:
Shannon Zhao 2018-02-24 18:16:35 -05:00 committed by Lioncash
parent ae3e22a689
commit 51c9e12605
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -581,6 +581,8 @@ typedef struct ARMCPU {
bool powered_off;
/* CPU has security extension */
bool has_el3;
/* CPU has PMU (Performance Monitor Unit) */
bool has_pmu;
/* CPU has memory protection unit */
bool has_mpu;