[PATCH v2] KVM: arm64: selftests: Skip unwritable ID fields in the failed-run test

Mark Brown broonie at kernel.org
Mon Oct 26 05:05:08 PDT 2026


On Sun, Oct 25, 2026 at 09:21:28PM -0400, Sasha Levin wrote:

> Only a field that userspace can change can be frozen, and KVM reports
> these registers as not writable in KVM_ARM_GET_REG_WRITABLE_MASKS. Skip
> the fields that the writable mask does not cover. test_vm_ftr_id_regs()
> already requires the mask to cover every other field in test_regs, so
> this only drops the fields KVM never lets userspace change. Whether KVM
> accepts writes to fields it reports as not writable is a separate
> question from finalization.

It would be nice to apply the same thing to the NV instances as well but
in any case:

Reviewed-by: Mark Brown <broonie at kernel.org>

I didn't redo the testing that Fuad already did since it'd just be the
same thing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261026/2042af10/attachment.sig>


More information about the linux-arm-kernel mailing list