Received: from eggs.gnu.org ([2001:4830:134:3::10]:50342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgDd2-0007C3-62 for qemu-devel@nongnu.org; Fri, 02 May 2014 09:35:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgDcx-00053x-1c for qemu-devel@nongnu.org; Fri, 02 May 2014 09:35:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgDcw-00053f-Pi for qemu-devel@nongnu.org; Fri, 02 May 2014 09:35:46 -0400 Date: Fri, 2 May 2014 15:35:23 +0200 From: Igor Mammedov Message-ID: <20140502153523.327b279a@nial.usersys.redhat.com> In-Reply-To: <20140502121035.GA6719@dhcp-192-168-178-175.profitbricks.localdomain> References: <535E96CE.8070501@windriver.com> <20140502121035.GA6719@dhcp-192-168-178-175.profitbricks.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] status of cpu hotplug work for x86_64? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasilis Liaskovitis Cc: chen.fan.fnst@cn.fujitsu.com, Chris Friesen , qemu-devel@nongnu.org, afaerber@suse.de On Fri, 2 May 2014 14:10:35 +0200 Vasilis Liaskovitis wrote: > Hi, > > On Mon, Apr 28, 2014 at 11:58:38AM -0600, Chris Friesen wrote: > > Hi, > > > > I'm trying to figure out what the current status is for cpu hotplug > > and hot-remove on x86_64. > > > > As far as I can tell, it seems like currently there is a QMP > > "cpu-add" command but no matching remove...is that correct? > > correct. "cpu-add" is the way to hot-add CPUs. > There is no support for cpu hot-remove at this point. > > The latest patchset for cpu hot-remove that I know of is: > http://lists.gnu.org/archive/html/qemu-devel/2013-12/msg04266.html > > If I understand correctly the biggest hurdle is supporting vcpu destruction > during the VM lifetime on the kvm host side. The corresponding kvm patches have > not been accepted: > http://comments.gmane.org/gmane.comp.emulators.kvm.devel/114347 > > So I have the same question as you: Is there any plan to support cpu hot-remove? Besides above mentioned series and KVM side of the problem there are several not yet addressed QEMU issues: - remove dependency on cpu_index for X86 cpu (arbitrary CPU add/rm) - need an interface to specify apic id when adding CPU - clean way would be -device x86-cpu-foo,{apic-id=xxx || node=foo,socket=x,core=y,thread=z} - x86 cpu subclasses by Eduardo were merged in the last release so on the road to "-device x86-cpu-foo" only conversion to of CPU features to properties is left (I need to rebase and respin it) - fix vmstate register/unregister (migration and arbitrary CPU add/rm) As for plans QEMU side of work could be done without KVM support first and then once KVM would be able to unplug VCPUs it could be added to QEMU without much issues. > > thanks, > > - Vasilis