Received: from eggs.gnu.org ([2001:4830:134:3::10]:34842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUd9X-0003Wz-EW for qemu-devel@nongnu.org; Wed, 26 Aug 2015 12:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUd9T-0004qJ-9r for qemu-devel@nongnu.org; Wed, 26 Aug 2015 12:02:19 -0400 Date: Wed, 26 Aug 2015 13:02:09 -0300 From: Eduardo Habkost Message-ID: <20150826160209.GA10988@thinpad.lan.raisama.net> References: <1437573590-2801-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437573590-2801-1-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Add another sanity check to smp_parse() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-trivial@nongnu.org, Paolo Bonzini , qemu-devel@nongnu.org On Wed, Jul 22, 2015 at 03:59:50PM +0200, Thomas Huth wrote: > The code in smp_parse already checks the topology information for > sockets * cores * threads < cpus and bails out with an error in > that case. However, it is still possible to supply a bad configuration > the other way round, e.g. with: > > qemu-system-xxx -smp 4,sockets=1,cores=4,threads=2 > > QEMU then still starts the guest, with topology configuration that > is rather incomprehensible and likely not what the user wanted. > So let's add another check to refuse such wrong configurations. > > Signed-off-by: Thomas Huth Applied to the x86 tree. Thanks! -- Eduardo