From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [PATCH 11/15] kvm: Remove unneeded memory slot reservation Date: Mon, 07 Feb 2011 08:26:02 -0700 Message-ID: <1297092362.3518.3.camel@x201> References: <70184bc75b64011db4a0610d60aad47dbf647cde.1297077507.git.jan.kiszka@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org, qemu-devel@nongnu.org To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28901 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753597Ab1BGP0H (ORCPT ); Mon, 7 Feb 2011 10:26:07 -0500 In-Reply-To: <70184bc75b64011db4a0610d60aad47dbf647cde.1297077507.git.jan.kiszka@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2011-02-07 at 12:19 +0100, Jan Kiszka wrote: > 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 > --- > kvm-all.c | 4 ---- > 1 files changed, 0 insertions(+), 4 deletions(-) Acked-by: Alex Williamson > 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]; > }