Re: [Qemu-devel] [PATCH 1/1] target/arm: clear PMUVER field of AA64DFR0 when vPMU=off

2017-05-30 Thread Peter Maydell
On 18 May 2017 at 17:11, Wei Huang wrote: > The PMUv3 driver of linux kernel (in arch/arm64/kernel/perf_event.c) > relies on the PMUVER field of id_aa64dfr0_el1 to decide if PMU support > is present or not. This patch clears the PMUVER field under TCG mode > when vPMU=off. Without it, PMUv3 will i

[Qemu-devel] [PATCH 1/1] target/arm: clear PMUVER field of AA64DFR0 when vPMU=off

2017-05-18 Thread Wei Huang
The PMUv3 driver of linux kernel (in arch/arm64/kernel/perf_event.c) relies on the PMUVER field of id_aa64dfr0_el1 to decide if PMU support is present or not. This patch clears the PMUVER field under TCG mode when vPMU=off. Without it, PMUv3 will init insider guest VMs even with vPMU=off. This patc