** Attachment added: "dmesg-in-host" https://bugs.launchpad.net/qemu/+bug/1182716/+attachment/3683493/+files/host-dmesg.log
-- 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:9953f8822cc316eec9962f0a2858c3439a80adec 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 = result 660696d1 + 9953f882 = bad 660696d1 + 5098699a = 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 Intel 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=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=07:00.0 -net none /root/rhel6u4.img qemu-system-x86_64: -device pci-assign,host=07: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=0, or load from file with romfile= 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