Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O535V-00040e-8w for qemu-devel@nongnu.org; Thu, 22 Apr 2010 16:33:29 -0400 Received: from [140.186.70.92] (port=49118 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O535R-0003wX-P1 for qemu-devel@nongnu.org; Thu, 22 Apr 2010 16:33:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O535P-0002ye-IA for qemu-devel@nongnu.org; Thu, 22 Apr 2010 16:33:25 -0400 Received: from torres.zugschlus.de ([85.214.68.41]:37262) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O535P-0002yX-Av for qemu-devel@nongnu.org; Thu, 22 Apr 2010 16:33:23 -0400 Date: Thu, 22 Apr 2010 22:33:21 +0200 From: Marc Haber Subject: Re: [Qemu-devel] virtio block device and sysfs Message-ID: <20100422203321.GG5321@torres.zugschlus.de> References: <20100306224234.GA1145@torres.zugschlus.de> <4B96BECF.2000505@codemonkey.ws> <20100322123816.GF30984@torres.zugschlus.de> <201003221514.48811.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201003221514.48811.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: john cooper , qemu-devel@nongnu.org Hi, On Mon, Mar 22, 2010 at 03:14:48PM +0000, Paul Brook wrote: > > > John attempted this and it was reverted because the implementation > > > exhausted the PCI config space. > > > > I don't understand that. Existig hardware devices dump much more of > > their data such as vendor and model type information into the config > > space, how can using a field that real hardware uses exhaust the > > config space? > > I think you (collectively) are confusing three different things: Perfectly accepted. I don't know zilch about today's hardware, I am not a developer but only a systems administrator wishing for some more flexibility in a software that I use every day. > - PCI config space: Not used in any significant way other than the standard > fields (i.e. basic device ID and configuring BARs). Slow/hard to access. > > - PCI IO BAR: Used by virtio-pci devices to expose the virtio config space. > Extremely limited resource (max. 64k for the whole system). On real hardware > only really used for legacy interfaces because it's slow, cumbersome, and x86 > specific. Unfortunately it currently seems to lower overhead than MMIO on KVM > :-( > > - PCI MEM BAR (usually MMIO): How real devices expose themselves. Relatively > large address space (megabytes) available. Looks like PCI MEM BAR may be the way to go. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190