Re: [PATCH v2] KVM: arm64: selftests: Skip unwritable ID fields in the failed-run test
From: Mark Brown
Date: Mon Oct 26 2026 - 08:38:13 EST
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@xxxxxxxxxx>
I didn't redo the testing that Fuad already did since it'd just be the
same thing.
Attachment:
signature.asc
Description: PGP signature