aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-07-20 18:30:50 +0900
committerPeter Maydell <peter.maydell@linaro.org>2024-07-29 16:02:25 +0100
commit0d2aac4ab1777162c7a7ecd5a6d5d4de93842116 (patch)
tree0a275712de58e32d1547e6d90151f448500bebe0 /module-common.c
parent613d0b8ebbf1fa32f8037cb02b7c82f96011ef2d (diff)
downloadqemu-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