From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K95rD-00026l-GH for qemu-devel@nongnu.org; Wed, 18 Jun 2008 18:10:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K95rC-00026Z-NL for qemu-devel@nongnu.org; Wed, 18 Jun 2008 18:10:23 -0400 Received: from [199.232.76.173] (port=46674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K95rC-00026W-JO for qemu-devel@nongnu.org; Wed, 18 Jun 2008 18:10:22 -0400 Received: from savannah.gnu.org ([199.232.41.3]:48285 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K95rC-0004NE-AB for qemu-devel@nongnu.org; Wed, 18 Jun 2008 18:10:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K95rB-0007qx-SK for qemu-devel@nongnu.org; Wed, 18 Jun 2008 22:10:21 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K95rB-0007qm-JS for qemu-devel@nongnu.org; Wed, 18 Jun 2008 22:10:21 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 18 Jun 2008 22:10:21 +0000 Subject: [Qemu-devel] [4749] Make save function optional Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4749 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4749 Author: aurel32 Date: 2008-06-18 22:10:21 +0000 (Wed, 18 Jun 2008) Log Message: ----------- Make save function optional (Ian Jackson) Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-06-18 22:10:12 UTC (rev 4748) +++ trunk/vl.c 2008-06-18 22:10:21 UTC (rev 4749) @@ -5987,6 +5987,10 @@ 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);