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)
commit0c0543a128bd1c6a4c8610d0d9d869053fa2fbf5
tree27854a82299dc3fc4bdd0f11c1c8426ee0b777d4
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36
arm64: KVM: Hide PMU from guests when disabled

Since commit 93390c0a1b20 ("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