Skip to contentSkip to conversation

Vista/rtl8139 broken?

DISCUSSION Alistair John Strachan 3 participants 3 messages Aug 18, 2007 3 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I've been using ne2k with BSD/Linux/WindowsXP just fine with KVM-35/2.6.23-rc2, but when I try to run Vista, which doesn't support the ne2k any more, I tried switching to the rtl8139 emulation.

I observed that the rtl8139 emulation works fine in WindowsXP, so it's not broken. But it does not seem to work in Vista (x86). The host is AMD64/SVM. The way that it doesn't work is that no packets are sent/received over the interface, so the device does not route.

The only difference between XP and Vista's KVM startup is that for Vista I enable ACPI (necessary to install).

WindowsXP -->

kvm -no-reboot -localtime -no-acpi -m 256 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*

Vista -->

kvm -no-reboot -localtime -m 512 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*

The problem seems to be similar to a QEMU endian bug from some time ago, but I don't think that's the problem here. It looks like it's some sort of incompatibility between Vista and the rtl8139 emulation.

Any ideas? Does ACPI have anything to do with it?

Signature · 11 lines
Cheers,
Alistair.

137/1 Warrender Park Road, Edinburgh, UK.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 59abf66e0708181637k11dc0261hf632372641cbe3f2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#3 lore raw
Quoted 19 lines · Alistair John Strachan

Hi,

I've been using ne2k with BSD/Linux/WindowsXP just fine with KVM-35/2.6.23-rc2, but when I try to run Vista, which doesn't support the ne2k any more, I tried switching to the rtl8139 emulation.

I observed that the rtl8139 emulation works fine in WindowsXP, so it's not broken. But it does not seem to work in Vista (x86). The host is AMD64/SVM. The way that it doesn't work is that no packets are sent/received over the interface, so the device does not route.

The only difference between XP and Vista's KVM startup is that for Vista I enable ACPI (necessary to install).

WindowsXP -->

kvm -no-reboot -localtime -no-acpi -m 256 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*

Vista -->

Quoted 8 lines
kvm -no-reboot -localtime -m 512 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*

The problem seems to be similar to a QEMU endian bug from some time ago, but I don't think that's the problem here. It looks like it's some sort of incompatibility between Vista and the rtl8139 emulation.

Any ideas? Does ACPI have anything to do with it?

http://kvm.qumranet.com/kvmwiki/Vista_Networking_Workaround

Basically, the rtl8139 emulation and the driver shipped with Vista don't get along very well. The workaround suggests using ne2k_pci and the Windows 2000 driver. There's a link to download the driver in the wiki page, if it doesn't work you can try:

http://cablemodem.fibertel.com.ar/tamsyn/drivercd.iso

I've personally used that driver successfully.

Cheers,
Jorge

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 200708190031.14264.alistair-T7eSMZptz7IqdlJmJB21zg@public.gmane.org

#5 lore raw
Quoted 18 lines · Alistair John Strachan

Hi,

I've been using ne2k with BSD/Linux/WindowsXP just fine with KVM-35/2.6.23-rc2, but when I try to run Vista, which doesn't support the ne2k any more, I tried switching to the rtl8139 emulation.

I observed that the rtl8139 emulation works fine in WindowsXP, so it's not broken. But it does not seem to work in Vista (x86). The host is AMD64/SVM. The way that it doesn't work is that no packets are sent/received over the interface, so the device does not route.

The only difference between XP and Vista's KVM startup is that for Vista I enable ACPI (necessary to install).

WindowsXP -->

kvm -no-reboot -localtime -no-acpi -m 256 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*
Quoted 7 lines

Vista -->

kvm -no-reboot -localtime -m 512 -hda $IMAGE \
    -net nic,model=rtl8139 -net tap,script=/etc/kvm/kvm-ifup $*

The problem seems to be similar to a QEMU endian bug from some time ago, but I don't think that's the problem here. It looks like it's some sort of incompatibility between Vista and the rtl8139 emulation.

The rtl8139 driver was fixed in upstream QEMU a week or two back - it was calculating checksums incorrectly which Vista didn't like. The patch needs to be applied to KVM too...

Dan.

Signature · 10 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/