[PATCH v1] KVM: arm64: Advertise MMFR0 TGRAN for pVMs
Fuad Tabba
fuad.tabba at linux.dev
Mon Sep 14 06:25:21 PDT 2026
Hi Vincent,
On Sun, Sep 13, 2026 at 9:31 PM Vincent Donnefort <vdonnefort at google.com> wrote:
>
> Protected VMs can support granules bigger than 4K. Advertise TGRAN16 and
> TGRAN64. TGRAN4 wasn't advertised as it is enabled by default (supported
> when 0). Add it as well for consistence.
nit: consistency
LGTM. However, could you fix the message for TGRAN4 and TGRAN64, and
add a Fixes: tag for 6c30bfb18d0b ("KVM: arm64: Add handlers for
protected VM System Registers")? 0 is IMP for both, so omitting them
advertised them: on the M4, where TGRAN64 reads 0xf, a 64K guest spins
at 100% with a silent console instead of parking. Those two lines are
a fix, not just a consistency change.
Tested under QEMU with protected and non-protected 4K and 16K guests,
and on an M4 with protected 4K, 16K and 64K guests.
Tested-by: Fuad Tabba <tabba at google.com>
With the commit message updated:
Reviewed-by: Fuad Tabba <tabba at google.com>
Cheers,
/fuad
More information about the linux-arm-kernel
mailing list