From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whfsr-0002Ym-32 for qemu-devel@nongnu.org; Tue, 06 May 2014 09:58:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Whfsj-0000Lk-Jz for qemu-devel@nongnu.org; Tue, 06 May 2014 09:58:13 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34654 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whfsj-0000Le-Dn for qemu-devel@nongnu.org; Tue, 06 May 2014 09:58:05 -0400 Message-ID: <5368EA6C.5080902@suse.de> Date: Tue, 06 May 2014 15:58:04 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <33183CC9F5247A488A2544077AF19020815E2DF1@SZXEMA503-MBS.china.huawei.com> <535BA2E4.4040202@redhat.com> <33183CC9F5247A488A2544077AF19020815E2FE4@SZXEMA503-MBS.china.huawei.com> <20140430000103.GA7429@Inspiron-3521> <33183CC9F5247A488A2544077AF19020815E5FB6@SZXEMA503-MBS.china.huawei.com> <87d2fr1bnu.fsf@blackfin.pond.sub.org> <33183CC9F5247A488A2544077AF19020815E61A2@SZXEMA503-MBS.china.huawei.com> <5368E566.7070900@suse.de> <33183CC9F5247A488A2544077AF19020815E6272@SZXEMA503-MBS.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF19020815E6272@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" Cc: Peter Maydell , "Michael S. Tsirkin" , "qemu-devel@nongnu.org" , Markus Armbruster , Hani Benhabiles , Paolo Bonzini Am 06.05.2014 15:41, schrieb Gonglei (Arei): >> >> Am 06.05.2014 14:52, schrieb Gonglei (Arei): >>> Step 1: I executed "device_add virtio-net-pci,id=3Dnet1" >>> with "info pci", I found the net1, showing as below: >>> Bus 0, device 4, function 0: >>> Ethernet controller: PCI device 1af4:1000 >>> IRQ 0. >>> BAR0: I/O at 0xffffffffffffffff [0x001e]. >>> BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe]. >>> BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe]. >>> id "net1" >>> Step 2: I executed " device_del net1", but the net1 still existed. >>> >>>> In QMP, you get a DEVICE_DELETED event when the unplug completes. >> See >>>> qmp/qmp-events.txt. >>> Actually, I don't get the event, as the net1 can't be unplug. >>> >>> BTW, when I execute step 1 "device_add virtio-net-pci,id=3Dnet1", I d= on't find >> the >>> Ethernet controller of virtio-net by "lspci " in the guest OS. >>> TBH, the command execution failed despite we can see net1 with "info = pci". >> >> Sounds like the acpiphp kernel module is not loaded inside the guest? >> > OMG, thank you so much. Good catch. In that case check your /etc/modprobe.conf file in the SLES guest. From at least SLES 11 SP2 on you should have an entry like this (here SP3): alias dmi:bvnQEMU:bvrQEMU:* acpiphp The exact values changed between SeaBIOS versions at some point. HTH, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg