Received: from eggs.gnu.org ([2001:4830:134:3::10]:47633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ8ty-0006NK-Dv for qemu-devel@nongnu.org; Sun, 14 Aug 2016 23:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZ8ts-0005QQ-G8 for qemu-devel@nongnu.org; Sun, 14 Aug 2016 23:49:25 -0400 Received: from [59.151.112.132] (port=8661 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ8ts-0005Op-2k for qemu-devel@nongnu.org; Sun, 14 Aug 2016 23:49:20 -0400 References: <1470738294-30452-1-git-send-email-douly.fnst@cn.fujitsu.com> <20160812154417.id4x5zmccgoqozou@kamzik.localdomain> From: Dou Liyang Message-ID: <2c3903ff-105e-6ec3-bf36-b7e0e7d04cc2@cn.fujitsu.com> Date: Mon, 15 Aug 2016 11:48:59 +0800 MIME-Version: 1.0 In-Reply-To: <20160812154417.id4x5zmccgoqozou@kamzik.localdomain> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2] docs: add cpu-hotplug.txt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Jones Cc: qemu-devel@nongnu.org, ehabkost@redhat.com, armbru@redhat.com, bharata@linux.vnet.ibm.com, famz@redhat.com, imammedo@redhat.com, david@gibson.dropbear.id.au Hi drew, 在 2016年08月12日 23:44, Andrew Jones 写道: > > Hi Dou, > > I'm catching up on mail after vacation so I reviewed the wrong > version of this patch first... Darn. I'll try again with this > version. Please still check my comments in that old version though, > as I'm going faster through this one and may miss things that are > here too (although not all comments are still applicable) Yes, I will. >> +For example, the following command-line: >> + >> + qemu [...] -smp 3,maxcpus=10,sockets=2,cores=2,threads=2 > > Same as my v0 comments. sockets*cores*threads must be exactly maxcpus I see. I will modify the example. However, when I executed the example in current QEMU, I can hotplug an CPU device in the location(socket-id=2,core-id=0,thread-id=1) which was not in the CPU topology successfully. 1: If we need a judgment: "maxcpus==sockets*cores*threads" when parsing the command line. 2: If replacing the maxcpus by the sockets*cores*threads in QEMU when a complete topology is given. Thanks, Dou