From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vldzl-0004Dw-Pz for qemu-devel@nongnu.org; Wed, 27 Nov 2013 07:13:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vldzf-0000zT-Qo for qemu-devel@nongnu.org; Wed, 27 Nov 2013 07:13:29 -0500 Received: from [222.73.24.84] (port=22124 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vldzf-0000vz-Ci for qemu-devel@nongnu.org; Wed, 27 Nov 2013 07:13:23 -0500 Message-ID: <1385554293.27561.67.camel@G08FNSTD131468> From: Chen Fan Date: Wed, 27 Nov 2013 20:11:33 +0800 In-Reply-To: <20131125183806.GA16693@dhcp-192-168-178-175.profitbricks.localdomain> References: <20131122080227.GA7786@dhcp-192-168-178-175.profitbricks.localdomain> <20131125183806.GA16693@dhcp-192-168-178-175.profitbricks.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [RFC qom-cpu v4 09/10] piix4: implement function cpu_status_write() for vcpu ejection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasilis Liaskovitis Cc: Igor Mammedov , qemu-devel@nongnu.org, Andreas =?ISO-8859-1?Q?F=E4rber?= On Mon, 2013-11-25 at 19:38 +0100, Vasilis Liaskovitis wrote: > On Fri, Nov 22, 2013 at 09:02:27AM +0100, Vasilis Liaskovitis wrote: > > Hi, > > > > On Wed, Oct 09, 2013 at 05:43:17PM +0800, Chen Fan wrote: > > > When OS eject a vcpu (like: echo 1 > /sys/bus/acpi/devices/LNXCPUXX/eject), > > > it will call acpi EJ0 method, the firmware will write the new cpumap, QEMU > > > will know which vcpu need to be ejected. > > > > I think that the _EJ0 callback (CPEJ method in hw/i386/acpi-dsdt-cpu-hotplug.dsl) > > currently does not write the new cpumap, it only sleeps. So cpu_state_write is > > never called on ejection, and the cpu objects remain allocated in qemu. Is there > > an updated version of the patchseries with a CPEJ that writes the new cpumap? > > oops, never mind. I missed your seabios patch mentioned in the head message, > got it now. > Ok, thanks for your attention. > thanks, > > - Vasilis