mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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>
This commit is contained in:
committed by
Andreas Färber
parent
41c6bcd912
commit
083a5f8731
17
stubs/vmstate.c
Normal file
17
stubs/vmstate.c
Normal file
@ -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)
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user