From 8e045ac407029c004e31eb46b0586309d618fbbd Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 7 Feb 2011 12:19:22 +0100 Subject: [PATCH] kvm: Remove unneeded memory slot reservation The number of slots and the location of private ones changed several times in KVM's early days. However, it's stable since 2.6.29 (our required baseline), and slots 8..11 are no longer reserved since then. So remove this unneeded restriction. Signed-off-by: Jan Kiszka CC: Alex Williamson Signed-off-by: Marcelo Tosatti --- kvm-all.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 802c6b836..14b6c1e73 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -91,10 +91,6 @@ static KVMSlot *kvm_alloc_slot(KVMState *s) int i; for (i = 0; i < ARRAY_SIZE(s->slots); i++) { - /* KVM private memory slots */ - if (i >= 8 && i < 12) { - continue; - } if (s->slots[i].memory_size == 0) { return &s->slots[i]; } -- 2.39.2