savevm: Make use of DeviceState
commit7685ee6abcb939104801f84b3fe9645412528088
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 25 Jun 2010 17:09:14 +0000 (25 11:09 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Jul 2010 15:36:28 +0000 (6 10:36 -0500)
treee9e0d68ba279e968d981aade8e7bafcbef207262
parent0be71e324f774a77243f1a1487f468232d69542b
savevm: Make use of DeviceState

For callers that pass a device we can traverse up the qdev tree and
make use of the BusInfo.get_dev_path information for creating unique
savevm id strings.  This avoids needing to rely on the instance number,
which can cause problems with device initialization order and hotplug.

For compatibility, we also store away the old id string and instance
so we can accept migrations from VMs as we add new get_dev_path
implementations.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
savevm.c