mirror of https://github.com/xqemu/xqemu.git
Make save function optional
(Ian Jackson) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4749 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e4bb997e06
commit
d978c02c31
4
vl.c
4
vl.c
|
@ -5987,6 +5987,10 @@ static int qemu_savevm_state(QEMUFile *f)
|
||||||
qemu_put_be64(f, 0); /* total size */
|
qemu_put_be64(f, 0); /* total size */
|
||||||
|
|
||||||
for(se = first_se; se != NULL; se = se->next) {
|
for(se = first_se; se != NULL; se = se->next) {
|
||||||
|
if (se->save_state == NULL)
|
||||||
|
/* this one has a loader only, for backwards compatibility */
|
||||||
|
continue;
|
||||||
|
|
||||||
/* ID string */
|
/* ID string */
|
||||||
len = strlen(se->idstr);
|
len = strlen(se->idstr);
|
||||||
qemu_put_byte(f, len);
|
qemu_put_byte(f, len);
|
||||||
|
|
Loading…
Reference in New Issue