Re: [PATCH] target/arm: Implement FEAT_HPMN0

2023-09-28 Thread Richard Henderson
On 9/21/23 14:54, Peter Maydell wrote: FEAT_HPMN0 is a small feature which defines that it is valid for MDCR_EL2.HPMN to be set to 0, meaning "no PMU event counters provided to an EL1 guest" (previously this setting was reserved). QEMU's implementation almost gets HPMN == 0 right, but we need to

[PATCH] target/arm: Implement FEAT_HPMN0

2023-09-21 Thread Peter Maydell
FEAT_HPMN0 is a small feature which defines that it is valid for MDCR_EL2.HPMN to be set to 0, meaning "no PMU event counters provided to an EL1 guest" (previously this setting was reserved). QEMU's implementation almost gets HPMN == 0 right, but we need to fix one check in pmevcntr_is_64_bit(). Th