virtio: simplify config mechanism.
Previously we used a type/len pair within the config space, but this
seems overkill. We now simply define a structure which represents the
layout in the config space: the config space can now only be extended
at the end.
The main driver-visible changes:
1) We indicate what fields are present with an explicit feature bit.
2) Virtqueues are explicitly numbered, and not in the config space.
Signed-off-by:
Rusty Russell <rusty@rustcorp.com.au>
Showing
- Documentation/lguest/lguest.c 105 additions, 71 deletionsDocumentation/lguest/lguest.c
- drivers/block/virtio_blk.c 13 additions, 22 deletionsdrivers/block/virtio_blk.c
- drivers/char/virtio_console.c 2 additions, 2 deletionsdrivers/char/virtio_console.c
- drivers/lguest/lguest_device.c 74 additions, 58 deletionsdrivers/lguest/lguest_device.c
- drivers/net/virtio_net.c 11 additions, 14 deletionsdrivers/net/virtio_net.c
- drivers/virtio/virtio.c 0 additions, 45 deletionsdrivers/virtio/virtio.c
- include/linux/lguest_launcher.h 7 additions, 2 deletionsinclude/linux/lguest_launcher.h
- include/linux/virtio_blk.h 13 additions, 9 deletionsinclude/linux/virtio_blk.h
- include/linux/virtio_config.h 46 additions, 52 deletionsinclude/linux/virtio_config.h
- include/linux/virtio_net.h 7 additions, 4 deletionsinclude/linux/virtio_net.h
- net/9p/trans_virtio.c 2 additions, 2 deletionsnet/9p/trans_virtio.c
Loading
Please register or sign in to comment