From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS1H8-0008Va-2H for qemu-devel@nongnu.org; Thu, 11 Sep 2014 06:06:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS1H3-0005qv-1H for qemu-devel@nongnu.org; Thu, 11 Sep 2014 06:06:49 -0400 Received: from [59.151.112.132] (port=13205 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS1H2-0005qo-Li for qemu-devel@nongnu.org; Thu, 11 Sep 2014 06:06:44 -0400 Message-ID: <54117105.8000007@cn.fujitsu.com> Date: Thu, 11 Sep 2014 17:53:09 +0800 From: Gu Zheng MIME-Version: 1.0 References: <1409197002-9498-1-git-send-email-guz.fnst@cn.fujitsu.com> <1409197002-9498-11-git-send-email-guz.fnst@cn.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Bharata B Rao Cc: "qemu-devel@nongnu.org" , tangchen@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, anshul.makkar@profitbricks.com, chen.fan.fnst@cn.fujitsu.com, imammedo@redhat.com, "afaerber@suse.de" On 09/11/2014 05:35 PM, Bharata B Rao wrote: > On Thu, Aug 28, 2014 at 9:06 AM, Gu Zheng wrote= : >> After ACPI get a signal to eject a vCPU, the vCPU must be >> removed from CPU list=EF=BC=8Cbefore the vCPU really removed, then >> release the all related vCPU objects. >> But we do not close KVM vcpu fd, just record it into a list, in >> order to reuse it. >=20 > After I add and delete a CPU, "info cpus" from monitor still lists the > removed CPU. Is this expected ? No, you can not see the removed cpu from QEMU (e.g. monitor) or guest side, but from the kernel side it is still there, just no one uses it any more. Thanks, Gu >=20 > Regards, > Bharata. > . >=20