diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-18 22:10:21 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-18 22:10:21 +0000 |
commit | d978c02c311e833059b9d64487e37a5d0253a30b (patch) | |
tree | 43f8faa27f534fe91caca8120116df66e91d0f9a /vl.c | |
parent | e4bb997e06669b0a9990a5d7c9c14c77c945aeb9 (diff) | |
download | qemu-d978c02c311e833059b9d64487e37a5d0253a30b.tar.gz qemu-d978c02c311e833059b9d64487e37a5d0253a30b.tar.bz2 qemu-d978c02c311e833059b9d64487e37a5d0253a30b.zip |
Make save function optional
(Ian Jackson)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4749 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5987,6 +5987,10 @@ static int qemu_savevm_state(QEMUFile *f) qemu_put_be64(f, 0); /* total size */ 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 */ len = strlen(se->idstr); qemu_put_byte(f, len); |