From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 47451] New: need to re-load driver in guest to make a hot-plug VF work Date: Thu, 13 Sep 2012 09:21:40 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.19.201]:60613 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234Ab2IMJVs convert rfc822-to-8bit (ORCPT ); Thu, 13 Sep 2012 05:21:48 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8C85203B8 for ; Thu, 13 Sep 2012 09:21:46 +0000 (UTC) Received: from bugzilla.kernel.org (unknown [198.145.19.217]) by mail.kernel.org (Postfix) with ESMTP id CA34C203B3 for ; Thu, 13 Sep 2012 09:21:45 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: https://bugzilla.kernel.org/show_bug.cgi?id=3D47451 Summary: need to re-load driver in guest to make a hot-plug = VF work Product: Virtualization Version: unspecified Kernel Version: 3.5.0 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: kvm AssignedTo: virtualization_kvm@kernel-bugs.osdl.org ReportedBy: yongjie.ren@intel.com Regression: Yes Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux (RHEL6u3) kvm.git Commit:37e41afa97307a3e54b200a5c9179ada1632a844(master branch) qemu-kvm Commit:28c3a9b197900c88f27b14f8862a7a15c00dc7f0(master branch) Host Kernel Version:3.5.0-rc6 (Also exists in 3.6.0-rc3) Hardware:Romley-EP (SandyBridge system) Bug detailed description: -------------------------- After hot plugging a VF to a Linux guest (e.g.RHEL6.3) in qemu monitor,= the VF cannot work in the guest by. I need to remove the VF driver (e.g. igbvf= , ixgbevf) and probe it again, then the VF can work in guest. NIC: Intel 82599 NIC, Intel 82576 NIC It needn't reload VF driver in hot-plug case when using an old kernel. It's a regression in kernel. (commits are in kvm.git and qemu-kvm.git t= ree) kvm + qemu-kvm =3Dresult 37e41afa + 28c3a9b1 =3Dbad 322728e5 + 28c3a9b1 =3Dgood Note: 1. When assigning a VF in qemu-kvm command line (not hot-plug), VF can = work fine after boot-up. 2. It's easier to reproduce this in guest with 512/1024MB memory and 1/= 2 vCPUs. 3. Can't always reproduce with 2048MB and 2vCPUs. (Not very stable.) Reproduce steps: ---------------- 1.start up a host with kvm 2.qemu-system-x86_64 -m 512 smp 2 =E2=80=93net none =E2=80=93hda /root/= rhel6u3.img 3.switch to qemu monitor (ctrl+Alt+2) 4.device_add pci-assign,host=3D02:10.0,id=3Dmynic (02:10.0 is VF's BD= =46 number.) 5.switch to guest (ctrl+Alt+1) 6.check network of the VF. (it can't work) 7. remove VF driver in guest ('rmmod igbvf') 8. re-probe VF driver in guest ('modprobe igbvf') 9. check network of the VF. (It should work this time.) Current result: ---------------- The VF cannot work in the guest by default. Need to re-load VF driver i= n guest. Expected result: ---------------- VF works well in the guest by default after hot-plug. --=20 Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=3Demai= l ------- You are receiving this mail because: ------- You are watching the assignee of the bug.