• M
    virtio: invoke set_status callback on reset · 8006040d
    Michael S. Tsirkin 提交于
    As status is set to 0 on reset, invoke the relevant callback. This makes
    for a cleaner code in devices as they don't need to duplicate the code
    in their reset routine, as well as excercises this path a little more.
    
    In particular this makes it possible to unify
    vhost-net handling code with the following patch.
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit e0c472d8)
    8006040d
virtio.c 21.1 KB