From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm-18 breaks Cisco VPN on WinXP SP1 Date: Thu, 12 Apr 2007 11:37:14 +0300 Message-ID: <461DEFBA.8080907@qumranet.com> References: <460885B2.7080907@nt.net> <4608C397.30708@qumranet.com> <460A1560.6060506@qumranet.com> <460B63CF.1010209@qumranet.com> <460CB2B8.3070809@qumranet.com> <4610C408.9010502@qumranet.com> <4613D240.2000003@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000303000709020104010504" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Leslie Mann Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------000303000709020104010504 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Leslie Mann wrote: > Avi Kivity 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 --------------000303000709020104010504 Content-Type: text/x-patch; name="handle_io-debug.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="handle_io-debug.patch" 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: --------------000303000709020104010504 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --------------000303000709020104010504 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------000303000709020104010504--