]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: defer config changed notifications
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:51:55 +0000 (10:21 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:54:56 +0000 (10:24 +1030)
commit1906ee2f5c363b095f121eaa4599300d7191f837
treebe21b9a75aa1b5a95d8bb3ab7bf9470669e643bb
parentd3c2a95fc26dcd320f22fa3efcd2d1b5e195e6a2
virtio: defer config changed notifications

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: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cosmetic changes)
drivers/virtio/virtio.c
include/linux/virtio.h