From nobody Thu May 2 04:10:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 15124761840521018.0335858022635; Tue, 5 Dec 2017 04:16:24 -0800 (PST) Received: from localhost ([::1]:48117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMC91-0004Hq-9B for importer@patchew.org; Tue, 05 Dec 2017 07:16:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMC7h-0003bc-Aj for qemu-devel@nongnu.org; Tue, 05 Dec 2017 07:14:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMC7e-0004EO-Hq for qemu-devel@nongnu.org; Tue, 05 Dec 2017 07:14:53 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMC7e-0004E3-BX for qemu-devel@nongnu.org; Tue, 05 Dec 2017 07:14:50 -0500 Received: by mail-wm0-f66.google.com with SMTP id 64so852309wme.3 for ; Tue, 05 Dec 2017 04:14:50 -0800 (PST) Received: from fiorina.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id r3sm354713wmg.31.2017.12.05.04.14.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 04:14:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=awyLcMDLQDCBIe1KIh0H6x33NNFf3BGs2CrHsc++CcM=; b=XgN28BXAB0bFH9WXPeD3HnTbUwb7OvyN2ryaCruLBFGzT0DqbAVlU8kOTKRBnq7Rha NfGJ3vasHlPyi2qDoBBOtMcF33lpmjguotEPtECiaaAQWhmSaXDlitAl7EuNxOXnnj5u m76cGfi+HozQiKsuZtux2Mi9mCLVNCbYeHUbKCAb+iV5oCixceXI+pB2zVcqinKZoNmr JfiEdPI6DXmopKuseC9ebpnzzuj1NjZzgzCIOvNCMFwPRTarA+pK0T7XhbUmMthc8qe5 vME2RvWNKX6JjZRWcV/KT4TlmbxE6b92FpdJ6HhAcrb6Dm7MQjvREyieEwJNrT1CgBnK jtTw== X-Gm-Message-State: AKGB3mLUZvJEv0jDeMKqZ9u5gtatwVmnqFtnFzuKcOFpFMhWo3HkpqLh 8U77KzCmbMwkd4oaqJz3TpOonQ== X-Google-Smtp-Source: AGs4zMZOaYO7qXmm/R9u5KabTvqDBYHO2LOpniIFG34EiN1BWAaEV7Y5zPUkO70jaT1WtIxBtkMcCw== X-Received: by 10.28.122.11 with SMTP id v11mr10197215wmc.104.1512476089339; Tue, 05 Dec 2017 04:14:49 -0800 (PST) From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= To: virtio-dev@lists.oasis-open.org, qemu-devel@nongnu.org Date: Tue, 5 Dec 2017 13:14:46 +0100 Message-Id: <938dc32019864c9c19259bdddd64a53b6b99efef.1512476043.git.tgolembi@redhat.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.66 Subject: [Qemu-devel] [PATCH v2 1/1] virtio-balloon: include statistics of disk/file caches X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Wang , =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 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(-) 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/stan= dard-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