Received: from eggs.gnu.org ([2001:4830:134:3::10]:43072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLxCi-0005yE-GL for qemu-devel@nongnu.org; Thu, 12 Feb 2015 12:05:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLxCc-0006Pd-Ua for qemu-devel@nongnu.org; Thu, 12 Feb 2015 12:05:28 -0500 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:52068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLxCc-0006P6-Os for qemu-devel@nongnu.org; Thu, 12 Feb 2015 12:05:22 -0500 Received: by mail-wi0-f175.google.com with SMTP id r20so5933131wiv.2 for ; Thu, 12 Feb 2015 09:05:20 -0800 (PST) Date: Thu, 12 Feb 2015 17:05:17 +0000 From: Stefan Hajnoczi Message-ID: <20150212170517.GH4054@stefanha-thinkpad.redhat.com> References: <1423574702-23072-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="v2Uk6McLiE8OV1El" Content-Disposition: inline In-Reply-To: <1423574702-23072-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH] savevm: Improve error message for blocked migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, stefanha@redhat.com --v2Uk6McLiE8OV1El Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 10, 2015 at 02:25:02PM +0100, Kevin Wolf wrote: > If an internal snapshot can't be saved because migration is blocked > (most commonly probably because of AHCI), we had a really bad error > message: >=20 > $ echo -e "savevm foo\nquit" | qemu -M q35 /tmp/test.qcow2 -monitor stdio > QEMU 2.2.50 monitor - type 'help' for more information > (qemu) savevm foo > Error -22 while writing VM > (qemu) quit >=20 > This patch converts qemu_savevm_state() to the Error infrastructure so > that a useful error pointing to the problematic device is produced now: >=20 > $ echo -e "savevm foo\nquit" | qemu -M q35 /tmp/test.qcow2 -monitor stdio > QEMU 2.2.50 monitor - type 'help' for more information > (qemu) savevm foo > State blocked by non-migratable device '0000:00:1f.2/ich9_ahci' > (qemu) quit >=20 > Signed-off-by: Kevin Wolf > --- > savevm.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --v2Uk6McLiE8OV1El Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU3N1NAAoJEJykq7OBq3PIZ4AH/02x+PtxAF+qGo7+egprUicu NOHeHxvq+X4TGwAkAsI34JTPNsEkFVoys7ywExVgwj5Zk7EBZZks1a1q9fpvJXtz 40+gDg5aU44kMLqk2Fb9nRXb8NXEM9tiJm7FFN1f+uyIUgZzJpRor5nRp5qigBfd Ja+i6A4EKmr3FMXge5dSph+CxbZ95oZ3RzPtQSbsfQkF0GzpOymAiDr97nVQ+/Ji qzb+rcrwAm1D2HZXFZIyFmEuM8VpXra7Z29vnu+ZiO0RAkAqb8PXuiBy0s1r22nt /H1ma7HBBP60b+l45+8Ss/v+dkbabRGLdPr2OFWdmphg2ILTwEXwL2Va25P6WB0= =h5+2 -----END PGP SIGNATURE----- --v2Uk6McLiE8OV1El--