[PATCH v2 11/20] KVM: selftests: Initialize vm->memslots[] with invalid memslots during creation

Ritesh Harjani (IBM) ritesh.list at gmail.com
Thu Sep 10 04:09:02 PDT 2026


Sean Christopherson <seanjc at google.com> writes:

> Initialize vm->memslots[] with an invalid memslots value during very
> initial VM creation so that failure to configure the core memory regions
> generates an immediate assert instead of potential weirdness, e.g. if slot0
> is coincidentally valid.  This will also allow hardening the region APIs to
> guard overriding a region's memslot multiple times.
>

Sure. Looks good overall. Please feel free to add:

Reviewed-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>



More information about the linux-arm-kernel mailing list