diff mbox

[qom-cpu,v2,2/8] stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY

Message ID 1361216553-4549-3-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber Feb. 18, 2013, 7:42 p.m. UTC
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 include/migration/vmstate.h |    4 ++++
 stubs/vmstate.c             |    2 ++
 2 Dateien geändert, 6 Zeilen hinzugefügt(+)

Comments

Juan Quintela Feb. 22, 2013, 1:06 p.m. UTC | #1
Andreas Färber <afaerber@suse.de> wrote:
> Signed-off-by: Andreas Färber <afaerber@suse.de>

Reviewed-by: Juan Quintela <quintela@redhat.com>
diff mbox

Patch

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index f27276c..bfa5a7d 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -119,6 +119,10 @@  struct VMStateDescription {
     const VMStateSubsection *subsections;
 };
 
+#ifdef CONFIG_USER_ONLY
+extern const VMStateDescription vmstate_dummy;
+#endif
+
 extern const VMStateInfo vmstate_info_bool;
 
 extern const VMStateInfo vmstate_info_int8;
diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index f64e9a3..3af8100 100644
--- a/stubs/vmstate.c
+++ b/stubs/vmstate.c
@@ -1,6 +1,8 @@ 
 #include "qemu-common.h"
 #include "migration/vmstate.h"
 
+const VMStateDescription vmstate_dummy = {};
+
 int vmstate_register_with_alias_id(DeviceState *dev,
                                    int instance_id,
                                    const VMStateDescription *vmsd,