Re: kvm-18 breaks Cisco VPN on WinXP SP1

Avi Kivity
2007-04-15T12:42:08Z

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Leslie Mann wrote:
> FYI, a switch to rtl8139 from the default NE2000 nic has "cured" the problem
> under both kvm-18 and kvm-svn.
>

The hint finally sank in, I was able to reproduce after switching to
ne2k (I usually use rtl8139). The attached patch (for kvm-18) fixes it
for me. Confirmation would be appreciated.

--
error compiling committee.c: too many arguments to function

[-- Attachment #2: kvm-pio-fix.patch --]
[-- Type: text/x-patch, Size: 379 bytes --]

diff --git a/kernel/kvm_main.c b/kernel/kvm_main.c
index 3e06c56..11a3cab 100644
--- a/kernel/kvm_main.c
+++ b/kernel/kvm_main.c
@@ -1729,6 +1729,11 @@ int kvm_setup_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
return 0;
}

+ if (!count) {
+ kvm_arch_ops->skip_emulated_instruction(vcpu);
+ return 1;
+ }
+
now = min(count, PAGE_SIZE / size);

if (!down)

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org