diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-07-20 18:30:50 +0900 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-07-29 16:02:25 +0100 |
commit | 0d2aac4ab1777162c7a7ecd5a6d5d4de93842116 (patch) | |
tree | 0a275712de58e32d1547e6d90151f448500bebe0 /module-common.c | |
parent | 613d0b8ebbf1fa32f8037cb02b7c82f96011ef2d (diff) | |
download | qemu-0d2aac4ab1777162c7a7ecd5a6d5d4de93842116.zip qemu-0d2aac4ab1777162c7a7ecd5a6d5d4de93842116.tar.gz qemu-0d2aac4ab1777162c7a7ecd5a6d5d4de93842116.tar.bz2 |
target/arm/kvm: Do not silently remove PMU
kvm_arch_init_vcpu() used to remove PMU when it is not available even
if the CPU model needs one. It is semantically incorrect, and may
continue execution on a misbehaving host that advertises a CPU model
while lacking its PMU. Keep the PMU when the CPU model needs one, and
let kvm_arm_vcpu_init() fail if the KVM implementation mismatches with
our expectation.
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>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions