From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Q7U-00031v-Ml for qemu-devel@nongnu.org; Tue, 18 Apr 2017 06:12:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0Q7P-0003w8-FU for qemu-devel@nongnu.org; Tue, 18 Apr 2017 06:12:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35844) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0Q7P-0003vl-9H for qemu-devel@nongnu.org; Tue, 18 Apr 2017 06:12:19 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4ED1980467 for ; Tue, 18 Apr 2017 10:12:18 +0000 (UTC) From: Juan Quintela In-Reply-To: <7aedc2da-c0de-a99a-eb8d-16fbe9cba8f3@redhat.com> (Paolo Bonzini's message of "Tue, 18 Apr 2017 11:46:33 +0200") References: <20170417200041.2451-1-quintela@redhat.com> <20170417200041.2451-20-quintela@redhat.com> <7aedc2da-c0de-a99a-eb8d-16fbe9cba8f3@redhat.com> Reply-To: quintela@redhat.com Date: Tue, 18 Apr 2017 12:12:16 +0200 Message-ID: <87h91mhvnj.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 19/19] monitor: remove monitor parameter from save_vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, dgilbert@redhat.com Paolo Bonzini wrote: > On 18/04/2017 11:44, Paolo Bonzini wrote: >> >> >> On 17/04/2017 22:00, Juan Quintela wrote: >>> load_vmstate() already use error_report, so be consistent. >> >> Better: make both return Error* via an Error** parameter, and add >> >> hmp_handle_error(mon, &err); >> >> to hmp_savevm and error_report_err(err) on the loading side. > > Not really, loadvm is also a monitor command (I was confusing it with > -incoming). So it can use hmp_handle_error too. ok. I did't kenw about that one. Thanks.