From: Jan Kiszka Date: Mon, 7 Feb 2011 11:19:22 +0000 (+0100) Subject: kvm: Remove unneeded memory slot reservation X-Git-Tag: TizenStudio_2.0_p2.3~3372^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47ee885bf1c11048b5e5a8f39588e9c61a53ae0c;p=sdk%2Femulator%2Fqemu.git 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 --- 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]; }