• Rusty Russell's avatar
    virtio: meet virtio spec by finalizing features before using device · ef688e15
    Rusty Russell authored
    Virtio devices are supposed to negotiate features before they start using
    the device, but the current code doesn't do this.  This is because the
    driver's probe() function invariably has to add buffers to a virtqueue,
    or probe the disk (virtio_blk).
    
    This currently doesn't matter since no existing backend is strict about
    the feature negotiation.  But it's possible to imagine a future feature
    which completely changes how a device operates: in this case, we'd need
    to acknowledge it before using the device.
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    ef688e15
virtio.c 5.93 KB