Received: from eggs.gnu.org ([2001:4830:134:3::10]:35768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Ugh-0007Rg-00 for qemu-devel@nongnu.org; Wed, 11 May 2016 10:00:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0UgZ-0000zS-Pj for qemu-devel@nongnu.org; Wed, 11 May 2016 10:00:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0UgZ-0000zM-KW for qemu-devel@nongnu.org; Wed, 11 May 2016 10:00:23 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F2CFB13A96 for ; Wed, 11 May 2016 14:00:22 +0000 (UTC) Date: Wed, 11 May 2016 16:00:19 +0200 From: Igor Mammedov Message-ID: <20160511160019.6987eeb8@nial.brq.redhat.com> In-Reply-To: <20160510202718.GE4457@thinpad.lan.raisama.net> References: <1462192431-146342-1-git-send-email-imammedo@redhat.com> <1462192431-146342-21-git-send-email-imammedo@redhat.com> <20160510202718.GE4457@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 20/42] machine: add cpu-hotplug machine option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, mst@redhat.com, marcel@redhat.com, eblake@redhat.com, armbru@redhat.com, drjones@redhat.com On Tue, 10 May 2016 17:27:18 -0300 Eduardo Habkost wrote: > On Mon, May 02, 2016 at 02:33:29PM +0200, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > If a machine class simply doesn't support CPU hotplug at all, is > silently ignoring "cpu-hotplug=on" the right thing to do? > > Shouldn't we exit with an error if the machine class doesn't > support CPU hotplug and the user tries to enable it? We have a bunch of such options in generic MachineClass and it was upto concrete machine to implement such checks. So I hadn't even considered to make such check in generic code nor think that's a right thing to do, if that's what you are asking. But maybe I've misunderstood question.