]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Hide PMU from guests when disabled
authorAndrew Jones <drjones@redhat.com>
Sat, 25 Nov 2017 17:40:31 +0000 (18:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 2 Jan 2018 09:05:45 +0000 (10:05 +0100)
commitd3365469851f246cdaf8d0dd31febb732eda1dd5
tree27854a82299dc3fc4bdd0f11c1c8426ee0b777d4
parentea68337e28b82c07e8a30cf1ca577c275fb830c6
arm64: KVM: Hide PMU from guests when disabled

Since commit d50bf48dcccf ("arm64: KVM: Hide unsupported AArch64 CPU
features from guests") we can hide cpu features from guests. Apply
this to a long standing issue where guests see a PMU available, but
it's not, because it was not enabled by KVM's userspace.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/kvm/sys_regs.c