From patchwork Tue Oct 22 22:29:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Duyck X-Patchwork-Id: 11205433 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC92013BD for ; Tue, 22 Oct 2019 22:29:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B928720684 for ; Tue, 22 Oct 2019 22:29:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ub96VsE/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B928720684 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E14D66B0007; Tue, 22 Oct 2019 18:29:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DC5BC6B0008; Tue, 22 Oct 2019 18:29:34 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D03536B000A; Tue, 22 Oct 2019 18:29:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id B02C36B0007 for ; Tue, 22 Oct 2019 18:29:34 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 3DD3F8249980 for ; Tue, 22 Oct 2019 22:29:34 +0000 (UTC) X-FDA: 76072863468.25.goose79_3664dbd016b5b X-Spam-Summary: 2,0,0,8282ead388b3f0e0,d41d8cd98f00b204,alexander.duyck@gmail.com,:kvm@vger.kernel.org:mst@redhat.com:linux-kernel@vger.kernel.org:willy@infradead.org:mhocko@kernel.org::akpm@linux-foundation.org:mgorman@techsingularity.net:vbabka@suse.cz:yang.zhang.wz@gmail.com:nitesh@redhat.com:konrad.wilk@oracle.com:david@redhat.com:pagupta@redhat.com:riel@surriel.com:lcapitulino@redhat.com:dave.hansen@intel.com:wei.w.wang@intel.com:aarcange@redhat.com:pbonzini@redhat.com:dan.j.williams@intel.com:alexander.h.duyck@linux.intel.com:osalvador@suse.de,RULES_HIT:41:152:355:379:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:4250:4321:4385:5007:6119:6261:6653:6742:7576:7903:8603:9413:10004:10400:11026:11473:11658:11914:12043:12048:12297:12438:12517:12519:12555:12679:12760:13069:13255:13311:13357:14096:14097:14181:14394:1 4687:147 X-HE-Tag: goose79_3664dbd016b5b X-Filterd-Recvd-Size: 4578 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Tue, 22 Oct 2019 22:29:33 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id f14so10802988pgi.9 for ; Tue, 22 Oct 2019 15:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=VitjQQFQG7H0A5JYqbYhHy/YWDiYO6QESupJyX3H62U=; b=ub96VsE/aHpg9djCBphz/P7fdVY3n86o/XWb1FAYTGbSu3AwR4K9lBGmtTy/Wn7cq8 pKmFbjXvCiAO/AnmPTA2xqH9ItqQ0QHW1e9m+fpikl/zoHAGuewJtMT+qYpkYU4d+sNB bRcwsxXm9qsjO4pPJRl9GrFQmmL7vyQVSjyqte3AigLrzhUm2sgR2QhetUXUFq1lw6Ms qK4rAZkMI7fL6gZSq06ke+W7yIVRWBRusrfPAujAVqlWXkE/ORuUZRRSsb/pqEPLL9kS 4niZNMgMERqwHAwhWTfqEOfuvdAYHH2aBZ8LE+reCLeCfFrdukQ02pYjZs0F/UIQzwSa +3pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=VitjQQFQG7H0A5JYqbYhHy/YWDiYO6QESupJyX3H62U=; b=g4l9SMnApDazWLIp5U2bcscvdq3oHBflNrXaL2uQCCHgWFFOd4aRjbWYHKFaCq+pBm 1OpzB6L4lnpy+8DV+lStzEC97t/q0Sf8KufBkQZrAhVuHHYHh2AtEGGRsnLzEE7S1W1C 8xHSgHLg/olWX/gVUaCXp0JLQP4OZrf9u7Q3gwo4ykISTUidNhKIze3aTWE4FwC5l8qd GxbUJFsPTdK3oLCdDG/rePd8QeZjG6MdolDqyLpawZ92jEtmm6PW9So9LkTdVoDbstaI xHWu8W/aKbK/vy6aFOZBIb5dQbohoVU60FeU65MGsRALb9KV4PvhymzDYImD0NcgWzSw 18jg== X-Gm-Message-State: APjAAAUmck2dPIinY67xo3cB3/F3KuOXsODnkjcNLY46AynQWTyKdxLO Fhrpt4nG3qH0RBr1nu5P1G8= X-Google-Smtp-Source: APXvYqzOM4u5GmGbN/ocrgEqoziD4wWkt1Nwwr1fbqvYRLXfjz4D1ifewFxxUB9G7yy1bBtSvW1EJg== X-Received: by 2002:a17:90a:b902:: with SMTP id p2mr7613515pjr.62.1571783372563; Tue, 22 Oct 2019 15:29:32 -0700 (PDT) Received: from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0]) by smtp.gmail.com with ESMTPSA id f89sm18661852pje.20.2019.10.22.15.29.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Oct 2019 15:29:32 -0700 (PDT) Subject: [PATCH v12 QEMU 2/3] virtio-balloon: Add bit to notify guest of unused page reporting From: Alexander Duyck To: kvm@vger.kernel.org, mst@redhat.com, linux-kernel@vger.kernel.org, willy@infradead.org, mhocko@kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, mgorman@techsingularity.net, vbabka@suse.cz Cc: yang.zhang.wz@gmail.com, nitesh@redhat.com, konrad.wilk@oracle.com, david@redhat.com, pagupta@redhat.com, riel@surriel.com, lcapitulino@redhat.com, dave.hansen@intel.com, wei.w.wang@intel.com, aarcange@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, alexander.h.duyck@linux.intel.com, osalvador@suse.de Date: Tue, 22 Oct 2019 15:29:31 -0700 Message-ID: <20191022222931.17594.85842.stgit@localhost.localdomain> In-Reply-To: <20191022221223.17338.5860.stgit@localhost.localdomain> References: <20191022221223.17338.5860.stgit@localhost.localdomain> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Alexander Duyck Add a bit for the page reporting feature provided by virtio-balloon. This patch should be replaced once the feature is added to the Linux kernel and the bit is backported into this exported kernel header. Signed-off-by: Alexander Duyck --- include/standard-headers/linux/virtio_balloon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers/linux/virtio_balloon.h index 9375ca2a70de..1c5f6d6f2de6 100644 --- a/include/standard-headers/linux/virtio_balloon.h +++ b/include/standard-headers/linux/virtio_balloon.h @@ -36,6 +36,7 @@ #define VIRTIO_BALLOON_F_DEFLATE_ON_OOM 2 /* Deflate balloon on OOM */ #define VIRTIO_BALLOON_F_FREE_PAGE_HINT 3 /* VQ to report free pages */ #define VIRTIO_BALLOON_F_PAGE_POISON 4 /* Guest is using page poisoning */ +#define VIRTIO_BALLOON_F_REPORTING 5 /* Page reporting virtqueue */ /* Size of a PFN in the balloon interface. */ #define VIRTIO_BALLOON_PFN_SHIFT 12