From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A25F0C352A3 for ; Tue, 11 Feb 2020 16:39:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 64A4D20848 for ; Tue, 11 Feb 2020 16:39:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64A4D20848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 084646B02F1; Tue, 11 Feb 2020 11:39:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 035826B02F3; Tue, 11 Feb 2020 11:39:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E8D696B02F4; Tue, 11 Feb 2020 11:39:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0168.hostedemail.com [216.40.44.168]) by kanga.kvack.org (Postfix) with ESMTP id D67FD6B02F1 for ; Tue, 11 Feb 2020 11:39:41 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 5E43B181AC9CC for ; Tue, 11 Feb 2020 16:39:41 +0000 (UTC) X-FDA: 76478407362.25.hands45_769c278db9955 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id CADFE18046C7F for ; Tue, 11 Feb 2020 16:33:35 +0000 (UTC) X-HE-Tag: hands45_769c278db9955 X-Filterd-Recvd-Size: 3591 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 11 Feb 2020 16:33:34 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 08:33:18 -0800 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="237443521" Received: from ahduyck-desk1.jf.intel.com ([10.7.198.76]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 08:33:18 -0800 Message-ID: <3a8d9e1a3a5528c3a0889448f2ffd02c186399b7.camel@linux.intel.com> Subject: Re: [PATCH v16.1 6/9] virtio-balloon: Add support for providing free page reports to host From: Alexander Duyck To: David Hildenbrand , "Michael S. Tsirkin" Cc: Alexander Duyck , kvm@vger.kernel.org, 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, yang.zhang.wz@gmail.com, nitesh@redhat.com, konrad.wilk@oracle.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, osalvador@suse.de Date: Tue, 11 Feb 2020 08:33:18 -0800 In-Reply-To: <314cb54e-8dfc-7606-7135-c21dbf416505@redhat.com> References: <20200122173040.6142.39116.stgit@localhost.localdomain> <20200122174347.6142.92803.stgit@localhost.localdomain> <20200211063441-mutt-send-email-mst@kernel.org> <20200211090052-mutt-send-email-mst@kernel.org> <20200211094357-mutt-send-email-mst@kernel.org> <314cb54e-8dfc-7606-7135-c21dbf416505@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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: On Tue, 2020-02-11 at 16:13 +0100, David Hildenbrand wrote: > >> AFAIKs, the guest could inflate/deflate (esp. temporarily) and > > > communicate via "actual" the actual balloon size as he sees it. > > > > OK so you want hinted but unused pages counted, and reported > > in "actual"? That's a vmexit before each page use ... > > No, not at all. I rather meant, that it is unclear how > inflation/deflation requests and "actual" *could* interact. Especially > if we would consider free page reporting as some way of inflation > (+immediate deflation) triggered by the guest. IMHO, we would not touch > "actual" in that case. > > But as I said, I am totally fine with keeping it as is in this patch. > IOW not glue free page reporting to inflation/deflation but let it act > like something different with its own semantics (and document these > properly). > Okay, so before I post v17 am I leaving the virtio-balloon changes as they were then? For what it is worth I agree with Michael that there is more to this than just a scatter-gather queue. For now I am trying to keep the overall impact on QEMU on the smaller side, and if we do end up supporting the MADV_FREE instead of MADV_DONTNEED that would also have an impact on things as it would be yet another difference between ballooning and hinting. Thanks. - Alex