KVM: arm64: Keep a per-VM pointer to the default PMU
authorMarc Zyngier <maz@kernel.org>
Thu, 27 Jan 2022 16:17:56 +0000 (16:17 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 8 Feb 2022 17:51:21 +0000 (17:51 +0000)
commit46b18782147248b62f00e98a7f87abaf934951e8
tree3da147a33e0bd15a0dde28b47a733e7de9199a8a
parent2093057ab879da1070c851b9e07126eaa86d0dfc
KVM: arm64: Keep a per-VM pointer to the default PMU

As we are about to allow selection of the PMU exposed to a guest, start by
keeping track of the default one instead of only the PMU version.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Link: https://lore.kernel.org/r/20220127161759.53553-4-alexandru.elisei@arm.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/pmu-emul.c