Reset support
commit73eb7f53587e56e2c697664822904cfc441106e2
authorDor Laor <dor.laor@qumranet.com>
Sun, 30 Dec 2007 22:18:27 +0000 (31 00:18 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 2 Jan 2008 15:49:30 +0000 (2 17:49 +0200)
tree074d301bf0a438984b0e6e990426a1542a1b3eea
parent96ea00fade6e666986a5296bb99fdb8b8ebb9fa5
Reset support

This adds a virtio_reset() callback.

Call it when the driver sets the pfn to zero and also on qemu_reset notifier
list.  This fixes crashes when virtio driver unloads or when rebooting the
guest.

Signed-off-by: Dor Laor <dor.laor@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/virtio.c