Re: kvm-18 breaks Cisco VPN on WinXP SP1

Avi Kivity
2007-04-12T08:37:14Z

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

Leslie Mann wrote:
> Avi Kivity <avi@...> writes:
>
>
>> Please test the attached patch, against kvm-17. This is subversion
>> revision 4546 and git commit c01571ed56754dfea458cc37d553c360082411a1.
>>
>>
>
> Fails.
>
> I notice that a lot of new code is related to pio. Seeing that it locks up when
> the VPN starts using the network, I sprinkled some printk's around and have
> discovered that we enter an long running (endless?) loop in kvm_run.
> run->exit_reason is KVM_EXIT_IO, to the naive observer (me) it would appear that
> an issue exists somewhere inside of handle_io().
>
>

The images that were reported to me as hanging seem to run fine, so
we're back to debugging this remotely. I now have more time so
hopefully we'll have a shorter loop.

Please apply the attached debug patch to kvm-18 so we can see what
handle_io() is looking at.

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

[-- Attachment #2: handle_io-debug.patch --]
[-- Type: text/x-patch, Size: 597 bytes --]

Index: user/kvmctl.c
===================================================================
--- user/kvmctl.c (revision 4622)
+++ user/kvmctl.c (working copy)
@@ -421,6 +421,16 @@
int i;
void *p = (void *)run + run->io.data_offset;

+ do {
+ static int n;
+
+ if (n++ % 100000 != 0)
+ break;
+ printf("handle_io: port %x dir %d size %d count %ld offset %lx\n",
+ run->io.port, run->io.direction, run->io.size,
+ (long)run->io.count, (long)run->io.data_offset);
+ } while (0);
+
for (i = 0; i < run->io.count; ++i) {
switch (run->io.direction) {
case KVM_EXIT_IO_IN:

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

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