get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/816346/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 816346,
    "url": "http://patchwork.ozlabs.org/api/patches/816346/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/13ca7e373615efac74661590527067ee8966f027.1505923516.git.tgolembi@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<13ca7e373615efac74661590527067ee8966f027.1505923516.git.tgolembi@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-20T16:05:22",
    "name": "[1/1] virtio-balloon: include buffers and chached memory statistics",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "aa6a9244e8926d77ca3a08ace980d0601087c2f8",
    "submitter": {
        "id": 69377,
        "url": "http://patchwork.ozlabs.org/api/people/69377/?format=api",
        "name": "Tomáš Golembiovský",
        "email": "tgolembi@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/13ca7e373615efac74661590527067ee8966f027.1505923516.git.tgolembi@redhat.com/mbox/",
    "series": [
        {
            "id": 4165,
            "url": "http://patchwork.ozlabs.org/api/series/4165/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4165",
            "date": "2017-09-20T16:05:21",
            "name": "Buffers/caches in VirtIO Balloon driver stats",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4165/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816346/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816346/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy4lx1Xvqz9t2Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 02:22:52 +1000 (AEST)",
            "from localhost ([::1]:49492 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1duhlz-0000ww-1R\n\tfor incoming@patchwork.ozlabs.org; Wed, 20 Sep 2017 12:22:51 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:49283)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <tgolembi@redhat.com>) id 1duhVE-0004BL-SV\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:05:35 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <tgolembi@redhat.com>) id 1duhV9-0007Lk-1A\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:05:32 -0400",
            "from mail-wm0-f50.google.com ([74.125.82.50]:44610)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <tgolembi@redhat.com>) id 1duhV8-0007KP-Qg\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:05:26 -0400",
            "by mail-wm0-f50.google.com with SMTP id 189so5554328wmh.1\n\tfor <qemu-devel@nongnu.org>; Wed, 20 Sep 2017 09:05:26 -0700 (PDT)",
            "from fiorina.redhat.com (ip-94-112-73-67.net.upcbroadband.cz.\n\t[94.112.73.67]) by smtp.gmail.com with ESMTPSA id\n\td6sm2000173wrb.32.2017.09.20.09.05.24\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 09:05:24 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=z/7KpNQjyoH6A2NlevtKgKEn4yQUr4YakPtRrKC/q6U=;\n\tb=C6wz7hmoyz3XILXn6Q8Ji0fRAg8cWkctPl3bvGpy+cifs8NjCY3D6j/UB7KeCi2PIw\n\td9Et7tkSlOi1jn4IQKJkwPZvXjK35tkvGaZMRs8acCA/vO/60FuBerwbidaj3HgNCmua\n\tnbon4yOfc64M97oMzLNJu+jI8/zZLxYmViVSNBnaMn/3FTYO0F+VWKG1v2e9I9mu+T8N\n\tSMRQRrYmoMlTyHmD34qhIjMWszKm58jecuWRwKr4cCVNrrmpqytKICbKeBxx4py938w7\n\tHnQm04h+g/H0vMwhYTCxzn8GxD9KTcccZIOZIe2cM2bVwG2cTN0ZmTF+SJMW+WPYbMnc\n\tr+pg==",
        "X-Gm-Message-State": "AHPjjUhwuUkM8RjRodUaRlxRAxVJTX+Dj4csI5mIsU6cMvb6P6FoKOhA\n\tqFgwh/I18zIDpwm8t0LiWw/ur+e7X64=",
        "X-Google-Smtp-Source": "AOwi7QBCGl0DEt54vmr1FpabuGWhH8HT+t54iALN4Ig6Tt4eiVzLnaOWMmabHtIMhTob5n2Yd+lKrg==",
        "X-Received": "by 10.28.67.197 with SMTP id q188mr4792462wma.41.1505923525789; \n\tWed, 20 Sep 2017 09:05:25 -0700 (PDT)",
        "From": "=?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= <tgolembi@redhat.com>",
        "To": "virtio-dev@lists.oasis-open.org,\n\tqemu-devel@nongnu.org",
        "Date": "Wed, 20 Sep 2017 18:05:22 +0200",
        "Message-Id": "<13ca7e373615efac74661590527067ee8966f027.1505923516.git.tgolembi@redhat.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<cover.1505923516.git.tgolembi@redhat.com>",
        "References": "<cover.1505923516.git.tgolembi@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]",
        "X-Received-From": "74.125.82.50",
        "Subject": "[Qemu-devel] [PATCH 1/1] virtio-balloon: include buffers and\n\tchached memory statistics",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "Wei Wang <wei.w.wang@intel.com>, =?utf-8?q?Tom=C3=A1=C5=A1_Golembiovsk?=\n\t=?utf-8?b?w70=?= <tgolembi@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>\n---\n hw/virtio/virtio-balloon.c                      | 2 ++\n include/standard-headers/linux/virtio_balloon.h | 4 +++-\n 2 files changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c\nindex a705e0ec55..0434784c14 100644\n--- a/hw/virtio/virtio-balloon.c\n+++ b/hw/virtio/virtio-balloon.c\n@@ -49,6 +49,8 @@ static const char *balloon_stat_names[] = {\n    [VIRTIO_BALLOON_S_MEMFREE] = \"stat-free-memory\",\n    [VIRTIO_BALLOON_S_MEMTOT] = \"stat-total-memory\",\n    [VIRTIO_BALLOON_S_AVAIL] = \"stat-available-memory\",\n+   [VIRTIO_BALLOON_S_BUFFERS] = \"stat-linux-buffers\",\n+   [VIRTIO_BALLOON_S_CACHED] = \"stat-linux-cached\",\n    [VIRTIO_BALLOON_S_NR] = NULL\n };\n \ndiff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers/linux/virtio_balloon.h\nindex 9d06ccd066..d61efbfcee 100644\n--- a/include/standard-headers/linux/virtio_balloon.h\n+++ b/include/standard-headers/linux/virtio_balloon.h\n@@ -52,7 +52,9 @@ struct virtio_balloon_config {\n #define VIRTIO_BALLOON_S_MEMFREE  4   /* Total amount of free memory */\n #define VIRTIO_BALLOON_S_MEMTOT   5   /* Total amount of memory */\n #define VIRTIO_BALLOON_S_AVAIL    6   /* Available memory as in /proc */\n-#define VIRTIO_BALLOON_S_NR       7\n+#define VIRTIO_BALLOON_S_BUFFERS  7   /* Buffers memory as in /proc */\n+#define VIRTIO_BALLOON_S_CACHED   8   /* Cached memory as in /proc */\n+#define VIRTIO_BALLOON_S_NR       9\n \n /*\n  * Memory statistics structure.\n",
    "prefixes": [
        "1/1"
    ]
}