From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: virtio-dev-return-3137-cohuck=redhat.com@lists.oasis-open.org Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [66.179.20.138]) by lists.oasis-open.org (Postfix) with ESMTP id E75B35818F76 for ; Mon, 5 Feb 2018 04:08:39 -0800 (PST) Date: Mon, 5 Feb 2018 13:08:24 +0100 From: =?UTF-8?B?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Message-ID: <20180205130824.79f570bc@fiorina> In-Reply-To: <938dc32019864c9c19259bdddd64a53b6b99efef.1512476043.git.tgolembi@redhat.com> References: <938dc32019864c9c19259bdddd64a53b6b99efef.1512476043.git.tgolembi@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [virtio-dev] Re: [PATCH v2 1/1] virtio-balloon: include statistics of disk/file caches To: virtio-dev@lists.oasis-open.org, qemu-devel@nongnu.org Cc: Wei Wang , "Michael S. Tsirkin" List-ID: ping On Tue, 5 Dec 2017 13:14:46 +0100 Tom=C3=A1=C5=A1 Golembiovsk=C3=BD wrote: > Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD > --- > hw/virtio/virtio-balloon.c | 1 + > include/standard-headers/linux/virtio_balloon.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c > index 37cde38982..8141326a51 100644 > --- a/hw/virtio/virtio-balloon.c > +++ b/hw/virtio/virtio-balloon.c > @@ -50,6 +50,7 @@ static const char *balloon_stat_names[] =3D { > [VIRTIO_BALLOON_S_MEMFREE] =3D "stat-free-memory", > [VIRTIO_BALLOON_S_MEMTOT] =3D "stat-total-memory", > [VIRTIO_BALLOON_S_AVAIL] =3D "stat-available-memory", > + [VIRTIO_BALLOON_S_CACHES] =3D "stat-disk-caches", > [VIRTIO_BALLOON_S_NR] =3D NULL > }; > =20 > diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/st= andard-headers/linux/virtio_balloon.h > index 9d06ccd066..7b0a41b8fc 100644 > --- a/include/standard-headers/linux/virtio_balloon.h > +++ b/include/standard-headers/linux/virtio_balloon.h > @@ -52,7 +52,8 @@ struct virtio_balloon_config { > #define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */ > #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */ > #define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */ > -#define VIRTIO_BALLOON_S_NR 7 > +#define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */ > +#define VIRTIO_BALLOON_S_NR 8 > =20 > /* > * Memory statistics structure. > --=20 > 2.15.1 >=20 --=20 Tom=C3=A1=C5=A1 Golembiovsk=C3=BD --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org