OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [virtio-dev] A simple example of virtio blk driver


On Mon, Jun 06, 2016 at 10:51:11AM +0530, Srinivas Nayak wrote:
> I am studying the virtio spec 1.0 and trying to write a virtio blk driver.
> Is there anywhere a simple example virtio blk driver can be found,
> which may be written with conformance to virtio spec 1.0?
> I would like to understand a simple virtio blk driver, how it is written.
> 
> Better if there is any clear document available regarding a virtio blk driver implementation.

If you want to see a minimal driver, look at the SeaBIOS
src/hw/virtio-blk.c driver.  It only uses a subset of virtio-blk
functionality.

https://github.com/qemu/seabios/blob/master/src/hw/virtio-blk.c

For a full implementation, look at the Linux driver:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/block/virtio_blk.c

Stefan

Attachment: signature.asc
Description: PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]