Skip to content

Commit

Permalink
stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY
Browse files Browse the repository at this point in the history
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
  • Loading branch information
afaerber committed Mar 12, 2013
1 parent d7650ea commit c71c3e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/migration/vmstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions stubs/vmstate.c
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit c71c3e9

Please sign in to comment.