From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: Re: kvm process exit on virtio error Date: Wed, 11 Feb 2009 19:59:46 +0000 Message-ID: <1234382386.14052.244.camel@blaa> References: <23212937.21234352516353.JavaMail.root@ns354536.ovh.net> Reply-To: Mark McLoughlin Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Phil Ten Return-path: Received: from mx2.redhat.com ([66.187.237.31]:52095 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756000AbZBKT77 (ORCPT ); Wed, 11 Feb 2009 14:59:59 -0500 In-Reply-To: <23212937.21234352516353.JavaMail.root@ns354536.ovh.net> Sender: kvm-owner@vger.kernel.org List-ID: Hi, On Wed, 2009-02-11 at 12:41 +0100, Phil Ten wrote: > Hello, > > My kvm processes are exiting on what I think are VIRTIO errors: > > Guest moved used index from 24543 to 24606 This is very strange. The code in question is: static int virtqueue_num_heads(VirtQueue *vq, unsigned int idx) { uint16_t num_heads = vring_avail_idx(vq) - idx; /* Check it isn't doing very strange things with descriptor numbers. */ if (num_heads > vq->vring.num) { fprintf(stderr, "Guest moved used index from %u to %u", idx, vring_avail_idx(vq)); exit(1); ... i.e. for virtio_net, vq->vring.num == 256 and 24606 - 24543 == 63, so it doesn't make much sense. Does this happen under heavy network traffic? Have you tried virtio_blk? Thanks, Mark.