From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mq6JS-0005JR-3U for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:25:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mq6JN-0005He-3V for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:25:49 -0400 Received: from [199.232.76.173] (port=48795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mq6JM-0005HY-Sy for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:25:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25481) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mq6JM-00063p-Bh for qemu-devel@nongnu.org; Tue, 22 Sep 2009 10:25:44 -0400 Message-ID: <4AB8DD53.7070806@redhat.com> Date: Tue, 22 Sep 2009 10:21:07 -0400 From: john cooper MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH] qemu: make virtio-blk PCI compliant by default 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> In-Reply-To: <4AB8992B.7070709@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: john.cooper@redhat.com, Rusty Russell , "Michael S. Tsirkin" , qemu-devel@nongnu.org, jens.axboe@oracle.com Avi Kivity wrote: > On 09/21/2009 06:47 PM, john cooper wrote: >> Rusty Russell wrote: >> >> >>> Too late, but no big deal. We just add another feature bit for the >>> new method. We can have a command virtqueue for queries such as this. >>> >>> (Interestingly, this same issue broke lguest, with the 8-bit limit on >>> configuration space sizes). >>> >> I believe the existing guest visible interface >> is preservable as-is without introducing any >> ATA specific knowledge into the driver. A >> trivial alternate R/O mapping for the page >> into the guest is all that is required. >> >> I ran out of time last week to tie this off >> but hopefully will do so shortly. >> >> > > 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. -john -- john.cooper@redhat.com