Received: from eggs.gnu.org ([2001:4830:134:3::10]:33441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlN2C-0002Vp-D1 for qemu-devel@nongnu.org; Mon, 03 Nov 2014 14:11:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlN24-0007rP-Ge for qemu-devel@nongnu.org; Mon, 03 Nov 2014 14:11:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlN24-0007rK-8e for qemu-devel@nongnu.org; Mon, 03 Nov 2014 14:11:16 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sA3JBFfH008078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 3 Nov 2014 14:11:15 -0500 Date: Mon, 3 Nov 2014 20:11:10 +0100 From: Igor Mammedov Message-ID: <20141103201110.2bf16a05@igors-macbook-pro.local> In-Reply-To: <5457BC43.5020403@redhat.com> References: <1414773522-7756-1-git-send-email-imammedo@redhat.com> <1414773522-7756-4-git-send-email-imammedo@redhat.com> <54576C56.9040704@redhat.com> <20141103180013.5b4e2831@igors-macbook-pro.local> <5457BC43.5020403@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 03/11] pc: check if KVM has enough memory slots for DIMM devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, mst@redhat.com On Mon, 03 Nov 2014 18:32:51 +0100 Paolo Bonzini wrote: >=20 >=20 > On 03/11/2014 18:00, Igor Mammedov wrote: > >> > This will always be off by 4 or so due to system RAM and ROM > >> > slots. I think patch 1 is enough. > > The goal of this patch is to prevent starting guest with not > > supported amount of lots requested on CLI with -m slots=3Dtoo_much, > > patch 1 won't prevent user from it. >=20 > Understood. But I think -m slots=3Dtoo_much is not an important > problem. What is problematic is filling those slots, which patch 1 > will help with. =46rom user's pov it's still error, i.e. he asked on CLI for one amount of hotpluggable slots and couldn't use all of them at runtime. I think in addition to this patch we need QMP accessible parameter for libvirt to tell limit, so that upper layers could tell user how many slot it's possible to use. something like this: /machine/available_memory_slots >=20 > Paolo