• Michael S. Tsirkin's avatar
    virtio: defer config changed notifications · 22b7050a
    Michael S. Tsirkin authored
    Defer config changed notifications that arrive during
    probe/scan/freeze/restore.
    
    This will allow drivers to set DRIVER_OK earlier, without worrying about
    racing with config change interrupts.
    
    This change will also benefit old hypervisors (before 2009)
    that send interrupts without checking DRIVER_OK: previously,
    the callback could race with driver-specific initialization.
    
    This will also help simplify drivers.
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Reviewed-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cosmetic changes)
    22b7050a
virtio.c 8.98 KB