From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msfd9-0006Id-St for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:32:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msfd5-0006Fa-33 for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:32:47 -0400 Received: from [199.232.76.173] (port=56058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msfd4-0006FQ-SV for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:32:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46123) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msfd4-0003xs-26 for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:32:42 -0400 Date: Tue, 29 Sep 2009 18:30:39 +0200 From: "Michael S. Tsirkin" Message-ID: <20090929163039.GA14044@redhat.com> References: <4AB8E88C.4040103@redhat.com> <4AB980E6.2070203@codemonkey.ws> <4AB9AA8E.7060800@third-harmonic.com> <4AC1A49A.1010308@redhat.com> <20090929065856.GC25389@redhat.com> <4AC1B5CD.7050702@redhat.com> <20090929085450.GE25389@redhat.com> <4AC211C8.1060202@codemonkey.ws> <20090929140601.GA28733@redhat.com> <4AC21660.6020304@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AC21660.6020304@codemonkey.ws> Subject: [Qemu-devel] Re: [PATCH 0/2] fix virtio_blk serial pci config breakage List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: john cooper , john cooper , Rusty Russell , qemu-devel@nongnu.org, Avi Kivity , jens.axboe@oracle.com, Vadim Rozenfeld On Tue, Sep 29, 2009 at 09:14:56AM -0500, Anthony Liguori wrote: > Michael S. Tsirkin wrote: >> I don't think it's such a good idea. We want to keep exposing most of >> config space in i/o bar because of backwards compatibility. And we want >> to keep datapath operations such as vq kicks, in i/o space. >> > > We can do feature negotiation in virtio-pci. That lets us continue > exposing the first 246 bytes of the config space in PIO and guests can > negotiate a second bar for access to larger config spaces. > > Regards, > > Anthony Liguori guests can't negotiate a bar. What I think we want to do - Use i/o for small fields (2-4 bytes) as we did previously we won't run out anytime soon - For large fields, put them in memory BAR1 and report the offset in i/o space - For huge fields, provide a mailbox in i/o space where guest writes an offset and reads out a value -- MST