From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0OV-0007P0-1m for qemu-devel@nongnu.org; Mon, 08 Dec 2014 10:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy0OR-0007r0-34 for qemu-devel@nongnu.org; Mon, 08 Dec 2014 10:38:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0OQ-0007qt-Rj for qemu-devel@nongnu.org; Mon, 08 Dec 2014 10:38:35 -0500 Date: Mon, 8 Dec 2014 16:38:15 +0100 From: Igor Mammedov Message-ID: <20141208163815.40bcb9e2@nial.usersys.redhat.com> In-Reply-To: References: <1409197002-9498-1-git-send-email-guz.fnst@cn.fujitsu.com> <1409197002-9498-11-git-send-email-guz.fnst@cn.fujitsu.com> <54857D61.4030502@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "qemu-devel@nongnu.org" , tangchen@cn.fujitsu.com, ChenFan , isimatu.yasuaki@jp.fujitsu.com, Bharata B Rao , Gu Zheng , Anshul Makkar , "afaerber@suse.de" On Mon, 8 Dec 2014 10:50:21 +0000 Peter Maydell wrote: > On 8 December 2014 at 10:28, Gu Zheng wrote: > > Yes, it's a limitation now, but it is not the final implementation. > > As to the QEMU side, the vcpu object in kernel is stateless, and a > > reset operation will be done when we hot add a vcpu, so I think we > > can kill the limitation, just choose a parked vcpu and reconfigure > > it before we use it. > > Why can't the kernel handle our just destroying the vcpu and > later recreating it if necessary? That seems the more logical > approach than trying to keep fds hanging around in userspace > for reuse. It's somewhat complex approach and it was suggested on KVM list to go parking route. for more details see thread https://www.mail-archive.com/kvm@vger.kernel.org/msg102839.html > > -- PMM >