Permalink
Browse files

stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information...
1 parent d7650ea commit c71c3e99b8897323af8c2fe0b9851610cd148538 @afaerber committed Feb 18, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 include/migration/vmstate.h
  2. +2 −0 stubs/vmstate.c
@@ -134,6 +134,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;
View
@@ -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,

0 comments on commit c71c3e9

Please sign in to comment.