• Jean-Philippe Brucker's avatar
    virtio: Implement notify_status · 95242e44
    Jean-Philippe Brucker authored
    
    
    Modern virtio require proper status handling and reset. A "notify_status"
    callback is already present in the virtio ops, but isn't implemented by
    any device. Instead they currently use "set_guest_feature" to reset the
    device and deal with endianess. This isn't sufficient for proper device
    reset, so add the notify_status callback to all devices that need it.
    
    To add useful hints like "start" and "stop", extend the status variable to
    32-bits.
    Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
    [Julien T: Remove VIRTIO_CONFIG_S_NEEDS_RESET from config mask, as
    	it is virtio v1+ macro and kvmtool only implements v0.9, this
    	macro should not be referenced for now]
    Signed-off-by: default avatarJulien Thierry <julien.thierry@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    95242e44
blk.c 7.54 KB