network in bridge mode doesn't work in SMP Linux guest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Environment:
------------
Host OS (ia32/ia32e/
Guest OS (ia32/ia32e/
Guest OS Type (Linux/
kvm.git Commit:
qemu-kvm Commit:
Host Kernel Version:3.5.0-rc1
Hardware:WSM-EP, Romley-EP
Bug detailed description:
-------
Network in bridge mode doesn't work in SMP RHEL6.1/6.2 guest.
After booting up, use “dhclient ethX” to get IP (we use DHCP in the network), guest can not get IP.
Note: 1. UP guest(-smp 1) doesn’t have this issue.
2. Windows(e.g. Win7) guest(-smp 4) has no issue.
This should be a qemu-kvm bug.
kvm + qemu-kvm = result
25e531a9 + 0a948cbb = bad
25e531a9 + 18b01275 = good
Reproduce steps:
----------------
1.start up a host with kvm(25e531a9) + qemu-kvm (0a948cbb)
2.qemu-
3. ifconfig
4. ping 192.168.199.98 (a IP in the same subnet)
5. dhclient ethx (can't get dynamic IP address)
Current result:
----------------
The guest can not get IP
Expected result:
----------------
The guest get IP and work fine.
The regression is due to the patch of "rtl8139: do the network/host communication only in normal operating mode". (Commit 99179993204172b c65e4303df) .
ff71f2e8cacefae
However after applying the patch, someone already reported this issue. (http:// comments. gmane.org/ gmane.comp. emulators. qemu/150064). So revertted this patch.
Not sure why this patch revert-revert again? So the bug happened again.