From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us8Ip-0000hA-J2 for qemu-devel@nongnu.org; Thu, 27 Jun 2013 05:15:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us8Ik-0008FJ-NO for qemu-devel@nongnu.org; Thu, 27 Jun 2013 05:15:43 -0400 Received: from indium.canonical.com ([91.189.90.7]:37826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us8Ik-0008FA-Hy for qemu-devel@nongnu.org; Thu, 27 Jun 2013 05:15:38 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Us8Ik-0005wJ-23 for ; Thu, 27 Jun 2013 09:15:38 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id F15112E807D for ; Thu, 27 Jun 2013 09:15:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 27 Jun 2013 09:09:16 -0000 From: Paolo Bonzini Sender: bounces@canonical.com References: <20130627070913.11577.79454.malonedeb@gac.canonical.com> <20130627074926.19374.92701.malone@wampee.canonical.com> <51CBFFC9.2050502@linux.vnet.ibm.com> Message-Id: <51CC013C.1020506@gnu.org> Errors-To: bounces@canonical.com Subject: Re: [Qemu-devel] [Bug 1195170] Re: cpu hot-add doesn't work with upstream qemu 1.5.50 Reply-To: Bug 1195170 <1195170@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Il 27/06/2013 11:03, chandrashekar shastri ha scritto: > Hi Bonzini, > = > Thanks, cpu hot-plug is working. > Could you please help me with cpu hot-unplug It is working. It is not implemented yet. Paolo -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1195170 Title: cpu hot-add doesn't work with upstream qemu 1.5.50 Status in QEMU: Invalid Bug description: cpu hot-add doesn't work with upstream qemu 1.5.50. When we add the cpu [through QMP] it throws error as " {"error": {"class": "GenericError", "desc": "Unable to add CPU: 2, max allowed: 1"}} ", when we have booted the guest with two cpus. Host Kernel Version: 3.10.0-rc5+ Libvirt Version: 1.0.6 Qemu Version: 1.5.50 Guest Kernel : 2.6.32-358.6.1.el6.x86_64 = Steps to Reproduce : Boot the guest with : qemu-system-x86_64 -drive file=3D'/home/images/vm1.qcow2',format=3Dqcow2,cache=3Dnone,boot=3Don -m = 2048 -smp 2,cores=3D2,threads=3D1,sockets=3D1 -qmp tcp:localhost:4444,server -monitor stdio -enable-kvm Start the telnet localhost 4444 on another shell verify that there are two cpus : I verified through HMP = (qemu) info cpus = * CPU #0: pc=3D0x000000000000f081 thread_id=3D2034 CPU #1: pc=3D0x00000000000f6497 (halted) thread_id=3D2031 Hot add the CPU using the below command in QMP: { "execute": "cpu-add", "arguments": { "id": 2 } } {"error": {"class": "GenericError", "desc": "Unable to add CPU: 2, max al= lowed: 1"}} Notes: -------- 1. By default [without specifying the no of cpu], the guest boots up with= 1 cpu, when we try to add one more cpu, below is the error: { "execute": "cpu-add", "arguments": { "id": 1 } } {"error": {"class": "GenericError", "desc": "Unable to add CPU: 1, max al= lowed: 0"}} 2. This issue is seen with or without enabling the KVM [i.e booting the guest without -enable-kvm option] To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1195170/+subscriptions