Received: from eggs.gnu.org ([2001:4830:134:3::10]:52952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK1Mu-0004Wi-65 for qemu-devel@nongnu.org; Wed, 20 Aug 2014 04:35:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK1Mn-0008Ud-VJ for qemu-devel@nongnu.org; Wed, 20 Aug 2014 04:35:44 -0400 Received: from indium.canonical.com ([91.189.90.7]:38209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK1Mn-0008UY-BV for qemu-devel@nongnu.org; Wed, 20 Aug 2014 04:35:37 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XK1Mm-0003QZ-Gl for ; Wed, 20 Aug 2014 08:35:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 6D9D12E80C0 for ; Wed, 20 Aug 2014 08:35:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Aug 2014 08:28:10 -0000 From: chao zhou Sender: bounces@canonical.com References: <20140808054714.5103.57594.malonedeb@gac.canonical.com> Message-Id: <20140820082810.5414.65740.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1354279] Re: The guest will be destroyed after hot remove the VF from the guest. Reply-To: Bug 1354279 <1354279@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org test on Ivytown_EP kvm.git + qemu.git: c77dcacb_0e4a7737 kernel version: 3.16.0 after hot remove the VF from the guest, the guest works fine. ** Changed in: qemu Status: New =3D> Fix Committed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1354279 Title: The guest will be destroyed after hot remove the VF from the guest. Status in QEMU: Fix Committed Bug description: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux kvm.git Commit:9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 qemu.git Commit:5a7348045091a2bc15d85bb177e5956aa6114e5a Host Kernel Version:3.16.0-rc1 Hardware:Romley_EP, Ivytown_EP,Haswell_EP = Bug detailed description: -------------------------- hot add the VF to the guest, then hot remove the VF from the guest, the g= uest will be destroyed. note: 1. when hot add the VF with vfio, the hot remove the VF from the guest, t= he guest works fine. 2. this shoule be a qemu bug: kvm + qemu =3D result 9f6226a7 + 5a734804 =3D bad 9f6226a7 + 9f862687 =3D good Reproduce steps: ---------------- 1. create guest qemu-system-x86_64 --enable-kvm -m 1024 -smp 4 -net none rhel6u5.qcow -mo= nitor pty 2. hot add the vf to guest echo "device_add pci-assign,host=3D05:10.0,id=3Dnic" >/dev/pts/x cat /dev/pts/x 3. hot remove the VF froem guest echo "device_del nic" >/dev/pts/x Current result: ---------------- the guest willl be destroyed after hot remove the VF from the guest Expected result: ---------------- the guest works fine after hot remove the VF from the guest = Basic root-causing log: ---------------------- [root@vt-snb9 qemu.git]# qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -n= et none rhel6u5.qcow -monitor pty VNC server running on `::1:5900' ** ERROR:qom/object.c:725:object_unref: assertion failed: (obj->ref > 0) Aborted (core dumped) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1354279/+subscriptions