From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmP6k-0007oG-DA for qemu-devel@nongnu.org; Mon, 19 May 2014 11:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmP6e-0002VE-LM for qemu-devel@nongnu.org; Mon, 19 May 2014 11:04:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmP6e-0002V2-D6 for qemu-devel@nongnu.org; Mon, 19 May 2014 11:04:00 -0400 Message-ID: <537A1D5E.6060603@redhat.com> Date: Mon, 19 May 2014 09:03:58 -0600 From: Eric Blake MIME-Version: 1.0 References: <2d651cbdf1c629fef76704ec2d732d534bc98e35.1400481675.git.jtomko@redhat.com> In-Reply-To: <2d651cbdf1c629fef76704ec2d732d534bc98e35.1400481675.git.jtomko@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LTsiv8CaXcRVInIlWefHIhjkj63VSC27N" Subject: Re: [Qemu-devel] [PATCH] virtio-balloon: return empty data when no stats are available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?SsOhbiBUb21rbw==?= , qemu-devel@nongnu.org Cc: mst@redhat.com, aliguori@amazon.com, lcapitulino@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LTsiv8CaXcRVInIlWefHIhjkj63VSC27N Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/19/2014 12:41 AM, J=C3=A1n Tomko wrote: > If the guest hasn't updated the stats yet, instead of returning > an error, return '-1' for the stats and '0' as 'last-update'. >=20 > This lets applications ignore this without parsing the error message. >=20 > Related libvirt patch and discussion: > https://www.redhat.com/archives/libvir-list/2014-May/msg00460.html >=20 > Signed-off-by: J=C3=A1n Tomko > --- > hw/virtio/virtio-balloon.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --LTsiv8CaXcRVInIlWefHIhjkj63VSC27N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTeh1eAAoJEKeha0olJ0NqWhkH/RpW6c4CbtrrPg7Z9V1odQmB gQLUXC3w+hicaI7ZPvZolkaQW01t64Bh4eVk/ctCmz+EJJs+aEAcSX4CMecTXxR5 x4ti8flg4Z+Ey+Q6NWRPtBlKaWEms872ZeizlaaDG0gmmj0hiYNbKxTC/1pqoRHa 4NwmXFlC4o5qQg9+dx9vwjQTQowykN65FVfDokAULY6tmYtB4M+Y9/D0lmJaFhLx IpVMqYKl0SCbKkbCoCZeDWYiWDYhya96mxYZhLpsY/byeH7hqWkx6e1LoeOpPwkm 8DkmFxvp2JKSIceJACaDVi8WCIDyg/0cpPoi6gFZ4P4QfZRIIFXJzjq+xq3RT90= =iL4g -----END PGP SIGNATURE----- --LTsiv8CaXcRVInIlWefHIhjkj63VSC27N--