summary refs log tree commit diff stats
path: root/hw/core/generic-loader.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@redhat.com>2023-11-06 15:00:26 +0000
committerPeter Maydell <peter.maydell@linaro.org>2023-11-06 15:00:26 +0000
commitfa68ecb330dbdfeefa7f4d11e30c939da13853b0 (patch)
tree42204f4186c1c73b5d061a0781cb60727289c629 /hw/core/generic-loader.c
parent3e01f1147a16ca566694b97eafc941d62fa1e8d8 (diff)
downloadfocaccia-qemu-fa68ecb330dbdfeefa7f4d11e30c939da13853b0.tar.gz
focaccia-qemu-fa68ecb330dbdfeefa7f4d11e30c939da13853b0.zip
hw/arm/virt: fix PMU IRQ registration
Since commit 9036e917f8 ("{include/}hw/arm: refactor virt PPI logic")
PMU IRQ registration fails for arm64 guests:

[    0.563689] hw perfevents: unable to request IRQ14 for ARM PMU counters
[    0.565160] armv8-pmu: probe of pmu failed with error -22

That commit re-defined VIRTUAL_PMU_IRQ to be a INTID but missed a case
where the PMU IRQ is actually referred by its PPI index. Fix that by using
INTID_TO_PPI() in that case.

Fixes: 9036e917f8 ("{include/}hw/arm: refactor virt PPI logic")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1960
Signed-off-by: Sebastian Ott <sebott@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 475d918d-ab0e-f717-7206-57a5beb28c7b@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/generic-loader.c')
0 files changed, 0 insertions, 0 deletions