Received: from eggs.gnu.org ([208.118.235.92]:55527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeyzB-0007HT-Sp for qemu-devel@nongnu.org; Tue, 21 May 2013 22:41:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ueyz0-0003rO-GH for qemu-devel@nongnu.org; Tue, 21 May 2013 22:41:05 -0400 Received: from indium.canonical.com ([91.189.90.7]:57412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueyz0-0003qp-2f for qemu-devel@nongnu.org; Tue, 21 May 2013 22:40:54 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Ueyyy-0005Zs-Mv for ; Wed, 22 May 2013 02:40:52 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 900142E807F for ; Wed, 22 May 2013 02:40:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 May 2013 02:28:28 -0000 From: Yongjie Ren <1182716@bugs.launchpad.net> Sender: bounces@canonical.com References: <20130522022828.503.42332.malonedeb@soybean.canonical.com> Message-Id: <20130522022828.503.42332.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1182716] [NEW] guest cannot boot up when Intel 82572 NIC assigned Reply-To: Bug 1182716 <1182716@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):linux kvm.git next branch Commit:660696d1d16a71e15549ce1bf74953be1592bcd3 qemu-kvm.git uq/master branch Commit:9953f8822cc316eec9962f0a2858c3439a80ad= ec Host Kernel Version:3.9.0-rc3 Hardware: IvyBridge-EP Bug detailed description: -------------------------- When creating a guest with Intel 82572 NIC (e1000e driver) assigned, I will= get "Invalid ROM contents" error and the guest cannot boot up. This should be a qemu-kvm bug. kvm + qemu-kvm =3D result 660696d1 + 9953f882 =3D bad 660696d1 + 5098699a =3D good note: = 1. when creating guest with assign a PF of Intel 72576 or Intel I350 (igb d= river), the PF works fine in guest. 2. when creating guest with assign a VF of Intel 72576 or Intel I350 or Int= el 82599, the VF works fine in guest. Reproduce steps: ---------------- 1. start up a host with kvm (commit: 660696d1) 2. ./pcistub.sh -h 07:00.0 ( to hide a device) 3. qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -device pci-assign,host=3D= 07:00.0 -net none rhel6u4.img Current result: ---------------- the guest cannot boot up. [root@vt-ivt2 ~]# qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -device pci= -assign,host=3D07:00.0 -net none /root/rhel6u4.img qemu-system-x86_64: -device pci-assign,host=3D07:00.0: pci-assign: Cannot r= ead from host /sys/bus/pci/devices/0000:07:00.0/rom Device option ROM contents are probably invalid (check dmesg). Skip option ROM probe with rombar=3D0, or load from file with romfile=3D Segmentation fault (core dumped) Expected result: ---------------- the guest can boot up, and the device works fine in guest. Basic root-causing log: (some log in 'dmesg') ---------------------- assign device 0:7:0.0 pci-stub 0000:07:00.0: Invalid ROM contents qemu-system-x86[6977]: segfault at 7f59afbffff8 ip 00007f59fe9f46ec sp 00007fff85f17aa8 error 4 in libc-2.12.so[7f59fe979000+18a000] ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1182716 Title: guest cannot boot up when Intel 82572 NIC assigned Status in QEMU: New Bug description: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):linux kvm.git next branch Commit:660696d1d16a71e15549ce1bf74953be1592bcd3 qemu-kvm.git uq/master branch Commit:9953f8822cc316eec9962f0a2858c3439a80= adec Host Kernel Version:3.9.0-rc3 Hardware: IvyBridge-EP = Bug detailed description: -------------------------- When creating a guest with Intel 82572 NIC (e1000e driver) assigned, I wi= ll get "Invalid ROM contents" error and the guest cannot boot up. This should be a qemu-kvm bug. kvm + qemu-kvm =3D result 660696d1 + 9953f882 =3D bad 660696d1 + 5098699a =3D good note: = 1. when creating guest with assign a PF of Intel 72576 or Intel I350 (igb= driver), the PF works fine in guest. 2. when creating guest with assign a VF of Intel 72576 or Intel I350 or I= ntel 82599, the VF works fine in guest. Reproduce steps: ---------------- 1. start up a host with kvm (commit: 660696d1) 2. ./pcistub.sh -h 07:00.0 ( to hide a device) 3. qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -device pci-assign,host= =3D07:00.0 -net none rhel6u4.img Current result: ---------------- the guest cannot boot up. [root@vt-ivt2 ~]# qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -device p= ci-assign,host=3D07:00.0 -net none /root/rhel6u4.img qemu-system-x86_64: -device pci-assign,host=3D07:00.0: pci-assign: Cannot= read from host /sys/bus/pci/devices/0000:07:00.0/rom Device option ROM contents are probably invalid (check dmesg). Skip option ROM probe with rombar=3D0, or load from file with romfile=3D Segmentation fault (core dumped) = Expected result: ---------------- the guest can boot up, and the device works fine in guest. Basic root-causing log: (some log in 'dmesg') ---------------------- assign device 0:7:0.0 pci-stub 0000:07:00.0: Invalid ROM contents qemu-system-x86[6977]: segfault at 7f59afbffff8 ip 00007f59fe9f46ec sp 00007fff85f17aa8 error 4 in libc-2.12.so[7f59fe979000+18a000] To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1182716/+subscriptions