diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2010-06-25 11:09:07 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:36:28 -0500 |
commit | f46a46557d3fe72843a3b1bf2f18d48b44534862 (patch) | |
tree | 7645a9d43874ff8d2cf233768396e60474cf8744 /slirp.c | |
parent | 1a3efc36ae7cd2a1c05e7d1edd42bc18967a56e8 (diff) | |
download | slirp-f46a46557d3fe72843a3b1bf2f18d48b44534862.zip slirp-f46a46557d3fe72843a3b1bf2f18d48b44534862.tar.gz slirp-f46a46557d3fe72843a3b1bf2f18d48b44534862.tar.bz2 |
savevm: Add DeviceState param
When available, we'd like to be able to access the DeviceState
when registering a savevm. For buses with a get_dev_path()
function, this will allow us to create more unique savevm
id strings.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp.c')
-rw-r--r-- | slirp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -232,7 +232,8 @@ Slirp *slirp_init(int restricted, struct in_addr vnetwork, slirp->opaque = opaque; - register_savevm("slirp", 0, 3, slirp_state_save, slirp_state_load, slirp); + register_savevm(NULL, "slirp", 0, 3, slirp_state_save, slirp_state_load, + slirp); QTAILQ_INSERT_TAIL(&slirp_instances, slirp, entry); @@ -243,7 +244,7 @@ void slirp_cleanup(Slirp *slirp) { QTAILQ_REMOVE(&slirp_instances, slirp, entry); - unregister_savevm("slirp", slirp); + unregister_savevm(NULL, "slirp", slirp); qemu_free(slirp->tftp_prefix); qemu_free(slirp->bootp_filename); |