mbox series

[kvm-unit-tests,v1,0/2] Some fixes for running under -cpu max on QEMU

Message ID 20240702163515.1964784-1-alex.bennee@linaro.org (mailing list archive)
Headers show
Series Some fixes for running under -cpu max on QEMU | expand

Message

Alex Bennée July 2, 2024, 4:35 p.m. UTC
Hi,

The following fixes try and make the experience of QEMU -cpu max a bit
smoother by actually checking the PMU versions supported. You can also
set -cpu max,pmu=off to fully hide PMU functionality from the
processor.

As max includes all the features we also need to take into account the
additional TGran values you can have with 52 bit addressing.

Please review,


Alex Bennée (2):
  arm/pmu: skip the PMU introspection test if missing
  arm/mmu: widen the page size check to account for LPA2

 lib/arm64/asm/processor.h | 29 ++++++++++++++---------------
 arm/pmu.c                 |  7 ++++++-
 2 files changed, 20 insertions(+), 16 deletions(-)