From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7rn-0007du-Ri for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:19:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yk7rj-0001h7-Qf for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:19:47 -0400 Received: from [59.151.112.132] (port=5908 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7ri-0001co-7Y for qemu-devel@nongnu.org; Mon, 20 Apr 2015 05:19:43 -0400 Message-ID: <5534C48B.7060901@cn.fujitsu.com> Date: Mon, 20 Apr 2015 17:19:07 +0800 From: Zhu Guihua MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010409070007020905020205" Subject: Re: [Qemu-devel] Unparking vCPU mechanism List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mohsin Kazmi Cc: qemu-devel@nongnu.org --------------010409070007020905020205 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 04/16/2015 06:50 PM, Mohsin Kazmi wrote: > Hi Zhu, > I am testing the hot unplug feature using your github branch > 'cpu-hotplug'. It is working fine when first time I added and deleted > cpu. But when I tried to add cpu second time, it showed me the > following error: > (qemu) device_add kvm64-x86_64-cpu,apic-id=1,id=cpu1 > Duplicate ID 'cpu1' for device > Sorry for late reply. I guess you should use iasl and regenerate the ACPI tables. You can refer to the following issue: http://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg02993.html Thanks, Zhu > I get from one of your patch > (https://patchwork.ozlabs.org/patch/439485/) commit message that cpu > is not literally removed from qemu but guest is unable to use it > anymore. Do you know the way how I can reuse that cpu which has > already added and deleted once. Or unparking the cpu mechanism. > > Thanks, > Mohsin Kazmi --------------010409070007020905020205 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 04/16/2015 06:50 PM, Mohsin Kazmi wrote:
Hi Zhu,
          I am testing the hot unplug feature using your github branch 'cpu-hotplug'. It is working fine when first time I added and deleted cpu. But when I tried to add cpu second time, it showed me the following error:
(qemu) device_add kvm64-x86_64-cpu,apic-id=1,id=cpu1
           Duplicate ID 'cpu1' for device


Sorry for late reply.
I guess you should use iasl and regenerate the ACPI tables.

You can refer to the following issue:
http://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg02993.html

Thanks,
Zhu

I get from one of your patch (https://patchwork.ozlabs.org/patch/439485/) commit message that cpu is not literally removed from qemu but guest is unable to use it anymore. Do you know the way how I can reuse that cpu which has already added and deleted once. Or unparking the cpu mechanism.

Thanks,
Mohsin Kazmi

--------------010409070007020905020205--