commit | e489030df2448d22b3cb92fd5dcb22c6fa0fc9e1 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Wed Sep 16 13:40:37 2009 +0300 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon Oct 05 09:32:50 2009 -0500 |
tree | fa7fbf08a1d4ba2d303b93bbbaa2224421cc68b9 | |
parent | 7f23f812c49da6d6fe03bcd4bc2d07341e93db11 [diff] |
qemu/virtio: fix reset with device removal virtio pci registers its own reset handler, but fails to unregister it, which will lead to crashes after device removal. Solve this problem by switching to qdev reset handler, which is automatically unregistered. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>