From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG5EF-0001Zh-Kq for qemu-devel@nongnu.org; Tue, 27 Jan 2015 07:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG5EC-0005NF-Jw for qemu-devel@nongnu.org; Tue, 27 Jan 2015 07:26:47 -0500 Received: from mail-vc0-x229.google.com ([2607:f8b0:400c:c03::229]:45791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG5EC-0005N0-G7 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 07:26:44 -0500 Received: by mail-vc0-f169.google.com with SMTP id hq12so4565232vcb.0 for ; Tue, 27 Jan 2015 04:26:43 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1422324042.3793.9.camel@G08FNSTD140041> References: <884906902.4955995.1422008657285.JavaMail.zimbra@oxygem.tv> <1422237708.23881.5.camel@G08FNSTD140041> <1405516216.5166135.1422242392438.JavaMail.zimbra@oxygem.tv> <1422244033.23881.14.camel@G08FNSTD140041> <1444566229.5202465.1422271669259.JavaMail.zimbra@oxygem.tv> <1422324042.3793.9.camel@G08FNSTD140041> Date: Tue, 27 Jan 2015 17:56:43 +0530 Message-ID: From: Bharata B Rao Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2 00/11] cpu: add i386 cpu hot remove support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhu Guihua Cc: qemu-devel , Alexandre DERUMIER , tangchen@cn.fujitsu.com, guz fnst , isimatu yasuaki , Anshul Makkar , chen fan fnst , Igor Mammedov , afaerber On Tue, Jan 27, 2015 at 7:30 AM, Zhu Guihua wrote: > On Mon, 2015-01-26 at 12:27 +0100, Alexandre DERUMIER wrote: >> >>About this, I can do it successfully on my qemu. >> >>So can you tell us more information about your operation? >> simply start with >> >> -smp 2,sockets=2,cores=2,maxcpus=4 -device kvm64-x86_64-cpu,apic-id=2,id=cpu2 >> >> then >> >> #device_del cpu2 >> >> Guest return >> [ 324.195024] Unregister pv shared memory for cpu 2 >> [ 324.250579] smpboot: CPU 2 is now offline >> >> but cpu is not remove in qemu. >> >> I had also try to eject manualy from guest >> echo 1 > /sys/bus/acpi/devices/LNXCPU\:02/eject >> >> But I have this error message >> ACPI: \_SB_.CP02: Eject incomplete - status 0xf >> >> (maybe is it normal ? or maybe is it a guest bug (kernel 3.16 from debian wheezy backports) ?) >> > > According to your description, the guest has invoked _EJ0 method, but > the method was executed unsuccessfully. > Thus, only hot-unplug request was invoked in qemu, but hot-unplug was > not so that cpu was still in qemu. > > Did you test any other kernel version? I will try kernel 3.16 to > investigate this problem later. Not sure if it is exactly same, but I had similar problem as seen by Alexandre when I had tried this patchset earlier and it was resolved by using iasl and regenerating the ACPI tables. Ref: http://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg02993.html Regards, Bharata.