From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWMvf-0004GB-QD for qemu-devel@nongnu.org; Tue, 14 Jun 2011 02:16:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWMve-00073t-DU for qemu-devel@nongnu.org; Tue, 14 Jun 2011 02:16:47 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:38002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWMvd-00073m-UX for qemu-devel@nongnu.org; Tue, 14 Jun 2011 02:16:46 -0400 Message-ID: <4DF6FCCC.3030803@web.de> Date: Tue, 14 Jun 2011 08:16:44 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4DF32FC6.3040607@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBA6A4136A3253EF60E64A805" Sender: jan.kiszka@web.de Subject: Re: [Qemu-devel] [PATCH] Reset system before loadvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel , Luiz Capitulino This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBA6A4136A3253EF60E64A805 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2011-06-12 19:42, Peter Maydell wrote: > On 11 June 2011 10:05, Jan Kiszka wrote: >> @@ -2074,6 +2074,7 @@ int load_vmstate(const char *name) >> return -EINVAL; >> } >> >> + qemu_system_reset(); >> ret =3D qemu_loadvm_state(f); >=20 > This means that if we're doing a load because the user > passed -loadvm on the command line we'll end up doing > qemu_system_reset() twice (once in vl.c and then again > here). Does that matter? I don't think it's worth optimizing. E.g. we already reset every PCI device twice during normal reset. Jan --------------enigBA6A4136A3253EF60E64A805 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk32/MwACgkQitSsb3rl5xQU4wCfWeaAi0kU75h+3VAMp1r89/Yb WvkAoMkxrLjaHIlnv40Zo1dqOZKhbut1 =sHrQ -----END PGP SIGNATURE----- --------------enigBA6A4136A3253EF60E64A805--