From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mq6au-0005J4-37 for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:43:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mq6ap-0005Fb-0Y for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:43:51 -0400 Received: from [199.232.76.173] (port=58196 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mq6ao-0005FQ-Gp for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:43:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49659) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mq6an-0001KO-SX for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:43:46 -0400 Date: Tue, 22 Sep 2009 17:41:49 +0300 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] Re: [PATCH] qemu: make virtio-blk PCI compliant by default Message-ID: <20090922144147.GA4117@redhat.com> References: <20090907181436.GA8538@redhat.com> <4AA60A58.4090703@redhat.com> <20090908075831.GA9875@redhat.com> <200909212039.01126.rusty@rustcorp.com.au> <4AB7A01A.3000206@redhat.com> <4AB8992B.7070709@redhat.com> <4AB8DD53.7070806@redhat.com> <4AB8DECA.3090908@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AB8DECA.3090908@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: john cooper , Rusty Russell , qemu-devel@nongnu.org, jens.axboe@oracle.com On Tue, Sep 22, 2009 at 05:27:22PM +0300, Avi Kivity wrote: > On 09/22/2009 05:21 PM, john cooper wrote: >>> Can we just read this page as a virtqueue command instead of having it >>> mapped permanently? >>> >> Probably although I hadn't looked specifically >> at doing so. Mapping the data via an unused >> pci bar is pretty trivial and seemed minimally >> intrusive to the existing driver. >> > > We'll run out of bars if we expend them like that. BAR1 is used for MSI-X already (if MSI-X is enabled), you can just add your data there. I would report the offset within the BAR somewhere in io space or in configuration space, so that we can relocate tables later if we like without changing guests. > -- > error compiling committee.c: too many arguments to function