aboutsummaryrefslogtreecommitdiff
path: root/include/migration
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-08-28 16:00:19 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-06 18:41:32 +0400
commit107b59698f79b323c4d111c46eb9e3db6f9d258b (patch)
tree45152d37afb55b46ad20bcdfc1ee792dae7438e5 /include/migration
parentb0b74e1f17508cb8cef8afd698558db1bd8999cc (diff)
downloadqemu-107b59698f79b323c4d111c46eb9e3db6f9d258b.zip
qemu-107b59698f79b323c4d111c46eb9e3db6f9d258b.tar.gz
qemu-107b59698f79b323c4d111c46eb9e3db6f9d258b.tar.bz2
vmstate: add qom interface to get id
Add an interface to get the instance id, instead of depending on Device and qdev_get_dev_path(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/register.h2
-rw-r--r--include/migration/vmstate.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/migration/register.h b/include/migration/register.h
index a13359a..73149c9 100644
--- a/include/migration/register.h
+++ b/include/migration/register.h
@@ -14,6 +14,8 @@
#ifndef MIGRATION_REGISTER_H
#define MIGRATION_REGISTER_H
+#include "hw/vmstate-if.h"
+
typedef struct SaveVMHandlers {
/* This runs inside the iothread lock. */
SaveStateHandler *save_state;
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index ac4f46a..f546f61 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -27,6 +27,8 @@
#ifndef QEMU_VMSTATE_H
#define QEMU_VMSTATE_H
+#include "hw/vmstate-if.h"
+
typedef struct VMStateInfo VMStateInfo;
typedef struct VMStateField VMStateField;