Messages in this thread | | | Subject | Re: [PATCH v3 3/7] arm64/kvm: disable access to AMU registers from kvm guests | From | Suzuki Kuruppassery Poulose <> | Date | Wed, 12 Feb 2020 16:33:19 +0000 |
| |
On 11/02/2020 18:45, Ionela Voinescu wrote: > Access to the AMU counters should be disabled by default in kvm guests, > as information from the counters might reveal activity in other guests > or activity on the host. > > Therefore, disable access to AMU registers from EL0 and EL1 in kvm > guests by: > - Hiding the presence of the extension in the feature register > (SYS_ID_AA64PFR0_EL1) on the VCPU. > - Disabling access to the AMU registers before switching to the guest. > - Trapping accesses and injecting an undefined instruction into the > guest. > > Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> > Cc: Marc Zyngier <maz@kernel.org> > Cc: James Morse <james.morse@arm.com> > Cc: Julien Thierry <julien.thierry.kdev@gmail.com> > Cc: Suzuki K Poulose <suzuki.poulose@arm.com> > Cc: Catalin Marinas <catalin.marinas@arm.com> > Cc: Will Deacon <will@kernel.org> > ---
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
| |