Skip to content

RFC Using a generic bus_type for virtio

[email protected] virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4New virtio bus driverdrivers/base/Kconfig drivers/base/Makefile drivers/base/virtio.c +1 more+331 -017 replies
2/4Convert virtio_net to new virtio busdrivers/net/virtio_net.c include/linux/virtio_net.h+44 -320 replies
3/4Convert virtio_blk to new virtio busdrivers/block/virtio_blk.c include/linux/virtio_blk.h+51 -230 replies
4/4Example virtio host implementation, using chardevdrivers/char/Makefile drivers/char/virtiosrv.c+574 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] Using a generic bus_type for virtio

This is a subject that came up in the virtio BOF session at OLS. I decided to go forward and implement something that I like, based on the latest virtio proposal at the time, which was draft III.

It's not a drop-in replacement, because it's missing a host implementation. I first started my own, which is not done yet, but wanted to do one for lguest and one for emulated PCI next. It's also entirely untested.

As things evolved, draft IV is completely different, and these patches don't make sense any more on them, because there is no longer the concept of a virtio_device, but instead there are devices that have an arbitrary number of virtqueue structures.

I'd still like to discuss my approach to see if there is reason to continue down that road, so I'm posting what I have right now.

I think among the options we have to go on are:

1. screw the virtio_bus, and let every host do its own stuff -- no autoloading, standalone drivers, chardev host etc.

2. get virtio_device back from the dead, and allow it to have multiple virtqueues, either two or an unlimited number.

3. screw the multiple-virtqueue idea, go back to the draft III stuff with my changes.

	Arnd <><