diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2012-12-05 14:49:08 -0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-08 21:03:43 +0100 |
commit | 083a5f8731bb3c7e0eae99dcdb1209027d770aaf (patch) | |
tree | a7f3e84465bae95cd554f2d50015802213d2b2ba /stubs/vmstate.c | |
parent | 41c6bcd912d1a2461313040566077b86e48eea31 (diff) | |
download | hqemu-083a5f8731bb3c7e0eae99dcdb1209027d770aaf.zip hqemu-083a5f8731bb3c7e0eae99dcdb1209027d770aaf.tar.gz |
libqemustub: vmstate register/unregister stubs
Add vmstate stub functions, so that qdev.o can be used without savevm.o
when vmstate support is not necessary (i.e. by *-user).
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'stubs/vmstate.c')
-rw-r--r-- | stubs/vmstate.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stubs/vmstate.c b/stubs/vmstate.c new file mode 100644 index 0000000..3682af5 --- /dev/null +++ b/stubs/vmstate.c @@ -0,0 +1,17 @@ +#include "qemu-common.h" +#include "migration/vmstate.h" + +int vmstate_register_with_alias_id(DeviceState *dev, + int instance_id, + const VMStateDescription *vmsd, + void *base, int alias_id, + int required_for_version) +{ + return 0; +} + +void vmstate_unregister(DeviceState *dev, + const VMStateDescription *vmsd, + void *opaque) +{ +} |