Received: from eggs.gnu.org ([2001:4830:134:3::10]:33606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKLQB-0000m6-Gf for qemu-devel@nongnu.org; Fri, 13 Sep 2013 00:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKLQ5-00029O-HT for qemu-devel@nongnu.org; Fri, 13 Sep 2013 00:55:55 -0400 Received: from indium.canonical.com ([91.189.90.7]:57883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKLQ5-00028j-BS for qemu-devel@nongnu.org; Fri, 13 Sep 2013 00:55:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VKLQ4-00039v-Fu for ; Fri, 13 Sep 2013 04:55:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 71ED62E8056 for ; Fri, 13 Sep 2013 04:55:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 13 Sep 2013 04:49:27 -0000 From: chao zhou Sender: bounces@canonical.com References: <20120629084555.32199.86226.malonedeb@soybean.canonical.com> Message-Id: <20130913044928.18885.72854.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1019179] Re: vCPU hot-add makes the guest abort Reply-To: Bug 1019179 <1019179@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org qemu-kvm.git has merged to qemu.git, upstream qemu doesn't have cpu_set command. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1019179 Title: vCPU hot-add makes the guest abort Status in QEMU: Invalid Bug description: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux(RHEL6u1) kvm.git Commit:ae7a2a3fb6f8b784c2752863f4f1f20c656f76fb qemu-kvm Commit:a212f79fc4596570124fb864425b980c157cd001 Host Kernel Version:3.5.0-rc1 Hardware:Romley-EP, WSM-EP = Bug detailed description: -------------------------- Hot-add vcpu for a guest in qemu monitor will make the guest abort. (QEMU= process is killed.) After Hot-removing vcpu for the guest in qemu monitor, the guest will be = still alive but the the number of vCPU in the guest doesn't decrease. Reproduce steps: ---------------- Hot-add vCPU: 1.start up a host with kvm (commit: ae7a2a3f)and qemu-kvm(commit: a212f79= f..) 2.qemu-system-x86_64 -m 1024 -smp 4,maxvcpus=3D10 =E2=80=93hda /root/rhel= 6u3.qcow 3. ls /sys/devices/system/cpu/ (to check CPUs in guest) 4. ctrl+alt+2 (swith to qemu monitor) 5. cpu_set 5 online Hot-remove vCPU: 1.start up a host with kvm (commit: ae7a2a3f) and qemu-kvm(commit: a212f7= 9f..) 2.qemu-system-x86_64 -m 1024 -smp 4,maxvcpus=3D10 =E2=80=93hda /root/rhel= 6u3.qcow 3. ls /sys/devices/system/cpu/ (to check CPUs in guest) 4. ctrl+alt+2 (swith to qemu monitor) 5. cpu_set 2 offline 6. ctrl+alt+1 7. ls /sys/devices/system/cpu/ (to check CPUs in guest) Current result: ---------------- vCPU hot-add will cause guest abort. vCPU hot-remove doesn't decrease the number of vCPU in guest. Expected result: ---------------- The number of the guest=E2=80=99s cpu changes as we expect. Basic root-causing log: ---------------------- [root@vt-snb9 ~]# qemu-system-x86_64 -m 1024 -smp 4,maxcpus=3D10 -hda /root/rhel6u3.qcow = VNC server running on `::1:5900' qemu-system-x86_64: hw/qdev.c:84: qdev_set_parent_bus: Assertion `bus->allow_hotplug' failed. Aborted (core dumped) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1019179/+subscriptions