[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Most up to date blktap2 kernel driver

2011/8/24 Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>:
> On Wed, 24 Aug 2011, Ian Campbell wrote:
>> The Xen backend framework in upstream qemu might also be interesting in
>> this context?
> Give a look at hw/xen_backend.c and hw/xen_disk.c in upstream qemu: they
> provide the basic infrustructure to run xen backends in userspace and
> the blkback userspace code.

This looks interesting, it provides an example of how to interact with
grant tables from user space.

>> Does NetBSD have an equivalent of (at least) /dev/xen/gntdev
>> and /dev/xen/evtchn? I think they are a requirement to make this work.
> You'll need a way to receive event channel notifications and a way to map
> grant references in userspace.

NetBSD has a device related to Xen events I think (/dev/xenevt), but
hasn't got any gntdev, I'm not sure if that's necessary, I saw that
hw/xen_block.c uses xc_gnttab functions to interact with grant tables,
and they work on NetBSD event though it has no gntdev (but has the
necessary hypercall HYPERVISOR_grant_table_op, I still have to figure
out how is that called from user space).

Regarding kernels, xen.git seems to be missing the blktap2 driver:


I only see a blktap folder, and no blktap2. Now I'm reading the code from:


I have a couple of books regarding Xen, the most helpful one being
"The Definitive Guide to the Xen Hypervisor" by David Chisnall, it has
been very helpful in understanding grant tables, but it doesn't have
any information regarding blktap/blktap2 driver internals, and I
cannot find any information apart from the code itself. Is there any
book that contains helpful information about the blktap

Thanks, Roger.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.