From patchwork Fri Oct 23 07:12:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 55527 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9N7Es4V021081 for ; Fri, 23 Oct 2009 07:14:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751250AbZJWHOo (ORCPT ); Fri, 23 Oct 2009 03:14:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751182AbZJWHOo (ORCPT ); Fri, 23 Oct 2009 03:14:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22568 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751168AbZJWHOn (ORCPT ); Fri, 23 Oct 2009 03:14:43 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9N7ElLg009640; Fri, 23 Oct 2009 03:14:47 -0400 Received: from redhat.com (vpn-6-107.tlv.redhat.com [10.35.6.107]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id n9N7EgAE009653; Fri, 23 Oct 2009 03:14:43 -0400 Date: Fri, 23 Oct 2009 09:12:31 +0200 From: "Michael S. Tsirkin" To: Sridhar Samudrala Cc: Shirley Ma , Shirley Ma , David Stevens , kvm@vger.kernel.org, sri@linux.vnet.ibm.com, mashirle@linux.vnet.ibm.com Subject: Re: vhost-net patches Message-ID: <20091023071231.GA12260@redhat.com> References: <20091020173259.GA14639@redhat.com> <20091021201923.GA25520@redhat.com> <20091022123456.GA6682@redhat.com> <20091022131332.GB6961@redhat.com> <1256232224.6601.17.camel@localhost.localdomain> <20091022174344.GA10821@redhat.com> <1256234420.27706.5.camel@w-sridhar.beaverton.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1256234420.27706.5.camel@w-sridhar.beaverton.ibm.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/hw/vhost_net.c b/hw/vhost_net.c index bc179ab..d651504 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -66,6 +66,11 @@ static int vhost_virtqueue_init(struct vhost_dev *dev, r = ioctl(dev->control, VHOST_SET_VRING_AVAIL, &addr); if (r < 0) return -errno; + + fprintf(stderr, "VQ %d, avail va %p(=%llx), pa %llx, num %x size %llx\n", + idx, vq->avail, (unsigned long long)addr.user_addr, + (unsigned long long)q->vring.avail, (unsigned)q->vring.num, s); + s = l = offsetof(struct vring_used, ring) + sizeof(struct vring_used_elem) * q->vring.num; vq->used = cpu_physical_memory_map(q->vring.used, &l, 1);