Re: [RFC PATCH v2 4/4] KVM: arm64: Make guests see only counters they can access

2025-02-10 Thread Colton Lewis
Hi Oliver, thanks for the review. Oliver Upton writes: On Sat, Feb 08, 2025 at 02:01:11AM +, Colton Lewis wrote: The ARM architecture specifies that when MDCR_EL2.HPMN is set, EL1 and EL0, which includes KVM guests, should read that value for PMCR.N. Signed-off-by: Colton Lewis ---

Re: [RFC PATCH v2 4/4] KVM: arm64: Make guests see only counters they can access

2025-02-09 Thread Oliver Upton
On Sat, Feb 08, 2025 at 02:01:11AM +, Colton Lewis wrote: > The ARM architecture specifies that when MDCR_EL2.HPMN is set, EL1 and > EL0, which includes KVM guests, should read that value for PMCR.N. > > Signed-off-by: Colton Lewis > --- > arch/arm64/kvm/debug.c

[RFC PATCH v2 4/4] KVM: arm64: Make guests see only counters they can access

2025-02-07 Thread Colton Lewis
The ARM architecture specifies that when MDCR_EL2.HPMN is set, EL1 and EL0, which includes KVM guests, should read that value for PMCR.N. Signed-off-by: Colton Lewis --- arch/arm64/kvm/debug.c | 3 +-- arch/arm64/kvm/pmu-emul.c | 8 +