Patchwork [33/37] kvm: Remove unneeded memory slot reservation

login
register
mail settings
Submitter Marcelo Tosatti
Date Feb. 14, 2011, 3:23 p.m.
Message ID <8e045ac407029c004e31eb46b0586309d618fbbd.1297696986.git.mtosatti@redhat.com>
Download mbox | patch
Permalink /patch/83134/
State New
Headers show

Comments

Marcelo Tosatti - Feb. 14, 2011, 3:23 p.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

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 <jan.kiszka@siemens.com>
CC: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
---
 kvm-all.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Patch

diff --git a/kvm-all.c b/kvm-all.c
index 802c6b8..14b6c1e 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];
         }