Received: from eggs.gnu.org ([2001:4830:134:3::10]:48794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmiic-0005rn-Ty for qemu-devel@nongnu.org; Fri, 07 Nov 2014 07:32:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmiiV-0005nC-TM for qemu-devel@nongnu.org; Fri, 07 Nov 2014 07:32:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmiiV-0005mz-Mo for qemu-devel@nongnu.org; Fri, 07 Nov 2014 07:32:39 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sA7CWdor019173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 7 Nov 2014 07:32:39 -0500 Date: Fri, 7 Nov 2014 10:32:36 -0200 From: Eduardo Habkost Message-ID: <20141107123236.GH3196@thinpad.lan.raisama.net> References: <1415290175-17314-1-git-send-email-drjones@redhat.com> <545BF212.2090404@redhat.com> <20141107092935.GB3004@hawk.usersys.redhat.com> <545C937E.6020106@redhat.com> <20141107095230.GA6518@hawk.usersys.redhat.com> <20141107112126.GB6518@hawk.usersys.redhat.com> <20141107121606.GG3196@thinpad.lan.raisama.net> <20141107122312.GA10985@hawk.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141107122312.GA10985@hawk.usersys.redhat.com> Subject: Re: [Qemu-devel] [PATCH] vl: rework smp_parse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Jones Cc: Paolo Bonzini , qemu-devel@nongnu.org On Fri, Nov 07, 2014 at 01:23:12PM +0100, Andrew Jones wrote: > On Fri, Nov 07, 2014 at 10:16:06AM -0200, Eduardo Habkost wrote: > > On Fri, Nov 07, 2014 at 12:21:26PM +0100, Andrew Jones wrote: > > > On Fri, Nov 07, 2014 at 10:52:31AM +0100, Andrew Jones wrote: [...] > > > After talking with Igor, it seems like the better approach is to get > > > smp parameters converted over to machine properties, allowing us to > > > use the old parser for old machine types, and the new for new. I'll > > > look into it. > > > > While we work on that, I think we could at least change the existing > > code to abort if sockets*cores*threads < smp_cpus (when all 4 options > > are present in the command-line), and never adjust any option silently. > > But then we'll end up with 3 different behaviors. If we do anything for > the short-term, then maybe it should only be to add warnings. The > machine property version will then convert those warnings to aborts for > new machines types. Oh, in that specific case I didn't even consider keeping the old behavior, so there wouldn't be 3 different behaviors to emulate. Silently changing smp_threads when it was explicitly set in the command-line is so wrong that I would always prefer to see QEMU aborting. -- Eduardo