]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm/kvm: Set PMU for host only when available
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sat, 20 Jul 2024 09:30:49 +0000 (18:30 +0900)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Jul 2024 13:50:25 +0000 (14:50 +0100)
commit613d0b8ebbf1fa32f8037cb02b7c82f96011ef2d
tree38a7ad7f094405135a6fd36b514a7bdae3348756
parent8deba2f36e9f7e34bf1805b08e69699486481c8a
target/arm/kvm: Set PMU for host only when available

target/arm/kvm.c checked PMU availability but unconditionally set the
PMU feature flag for the host CPU model, which is confusing. Set the
feature flag only when available.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm.c