Commit d978c02c311e833059b9d64487e37a5d0253a30b

Authored by aurel32
1 parent e4bb997e

Make save function optional

(Ian Jackson)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4749 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
... ... @@ -5987,6 +5987,10 @@ static int qemu_savevm_state(QEMUFile *f)
5987 5987 qemu_put_be64(f, 0); /* total size */
5988 5988  
5989 5989 for(se = first_se; se != NULL; se = se->next) {
  5990 + if (se->save_state == NULL)
  5991 + /* this one has a loader only, for backwards compatibility */
  5992 + continue;
  5993 +
5990 5994 /* ID string */
5991 5995 len = strlen(se->idstr);
5992 5996 qemu_put_byte(f, len);
... ...