From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: virtio implementation? Date: Wed, 18 Jul 2007 19:02:51 -0500 Message-ID: <469EAA2B.40307@codemonkey.ws> References: <469C89BD0200005A00027AE1@mcclure.wal.novell.com> <1184715761.10380.37.camel@localhost.localdomain> <469DC7F2.8050909@redhat.com> <200707190148.21728.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Gerd Hoffmann To: Arnd Bergmann Return-path: In-Reply-To: <200707190148.21728.arnd-r2nGTMty4D4@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Arnd Bergmann wrote: > On Wednesday 18 July 2007, Gerd Hoffmann wrote: > >> Rusty Russell wrote: >> >>> You mean backend? For networking it makes a great deal of sense. For >>> block it makes far less sense (COW, weird formats, etc). >>> >> For block you probably want both: userspace driver which can handle all >> sorts of funny image files, and a kernel driver doing a 1:1 mapping to a >> block device (lvm volume). >> >> > > Interestingly, once you have the kernel driver that maps a block device, > you can do most of the useful user scenarios by means of /dev/loop > and/or device mapper. > Not quite. Using device mapper to implement something like qcow turns out to be pretty painful. qcow, for instance, doesn't guarantee that blocks will be aligned to a sector boundary. It also doesn't guarantee that blocks are >= PAGE_SIZE. The other problem is that device mapper doesn't very much like to have very large tables so you end up having to use the table as a cache. See dm-userspace for an actual implementation of all of this. I'm beginning to think that a more proper userspace block device would be interesting. http://wiki.xensource.com/xenwiki/DmUserspace Regards, Anthony Liguori > Arnd <>< > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/