]> 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)
commit23da312bfa3e57b3b1a335492ae043b0eb285d3b
tree27854a82299dc3fc4bdd0f11c1c8426ee0b777d4
parentdfa3157fb849381d88d2521b3b4928416df1ab99
arm64: KVM: Hide PMU from guests when disabled

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