[RFC PATCH v1 07/42] skip processing plane configuration for plane 0 - plane 0 is the boot plane
Sriram Nambakam <[email protected]> Wed, 5 Aug 2026 04:02:49 -0700
| Newsgroups | org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
---
init/vm_planes.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/init/vm_planes.c b/init/vm_planes.c
index 8eafb1c5f8cf..ecfe8de409a8 100644
--- a/init/vm_planes.c
+++ b/init/vm_planes.c
@@ -288,7 +288,10 @@ static int __init parse_vm_planes_kconfig(const char *buf, size_t len,
p++;
}
- for (i = 0; i < *plane_count; i++) {
+ /* Plane 0 is the already-running boot plane; only secondary planes
+ * must provide full allocation metadata.
+ */
+ for (i = 1; i < *plane_count; i++) {
if (state[i].load_offset == VM_PLANES_UNSET_VALUE ||
state[i].memory_size == VM_PLANES_UNSET_VALUE ||
!state[i].vcpu_count ||
--
2.55.0