Thread (45 messages) flat view 45 messages, 8 authors, 2d ago

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

From: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Date: 2026-09-10 11:09:49
Also in: kvm, kvm-riscv, kvmarm, linux-riscv, lkml, loongarch

Sean Christopherson [off-list ref] 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@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help