]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
virtio-pci: fix bus master work around on load
authorMichael S. Tsirkin <mst@redhat.com>
Sat, 19 Mar 2011 17:28:19 +0000 (19:28 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 29 Mar 2011 06:55:12 +0000 (08:55 +0200)
commit6f162b368f6af3836c78c01d1dff299fc275367f
tree315bc420cc1f22eeda89fbd304a428f60ecc8cb8
parentb25a1bbcda04cc5b14e804f0c135e0e2708d6881
virtio-pci: fix bus master work around on load

Commit c81131db15dd1844d0db1d51f3cd7a105cfd2cf3
detects old guests by comparing virtio and
PCI status. It attempts to do this on load,
as well, but load_config callback in a binding
is invoked too early and so the virtio status
isn't set yet.

We could add yet another callback to the
binding, to invoke after load, but it
seems easier to reuse the existing vmstate
callback.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Alexander Graf <agraf@suse.de>
(cherry picked from commit 89c473fd82daf7dddad8162a683bcd0ef671ecda)
hw/virtio-pci.c
hw/virtio.h