Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4237599pxb; Tue, 26 Jan 2021 16:40:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/rdGm+9g6Mo1XqcLriLl2jinQGr4yYECyqmfShNom1x2Lrc50AyqnBBWyXSMGPQr3x2ze X-Received: by 2002:a17:907:b01:: with SMTP id h1mr4959221ejl.450.1611708000177; Tue, 26 Jan 2021 16:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611708000; cv=none; d=google.com; s=arc-20160816; b=Ag5dYiq8IQI60dpYMX5eC2JkpUODDJpYGnltwyzI4gk/7X9kui5PCeW3QhyJ3ZYrMu VAf826zk0akBTIjRsSc2HtFQva0Ae1dY+S32so8yCrMYlp4Zu3WFX7QEeyipC86g0i7g tv/N6DJUdXvvqTXlv0vXBi1YuO4NZ30vMIiUZtaAFBt2Wt3XPdwmC19l3hfSrn3vKWHG bVRARpDZ6VhwtbL4rjbtgKDM1ncK/8y4l82urczsTlmFiJsA6Z0qU21Wce7pYKbwXtB6 jVhuUtxxgtcVEoRAayrYxbCttAKVrjLLlQ5vfo5xFt6rK13zol26nH/CA49oae30NaR5 pm7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GLTk04HLYEc0gHiobpBa2Rf8M0brcNpNc92sIr4mWa4=; b=B2VzGAW+meeIRPhar6ptejNzoBrOSePqiY+t3AEUyPRFdLfj9byAnFE0u6/Ro3az3C K/9NEX6saHQtq50CYa6Dl8xJOlTmSeEozkNR9Uuq3kICeAv0vqICtzHyhrhdZZgdJNHG YaRrTF0cb5cAd6Rud4+NWtglf/R66DdXI8ovqKE5xKWbMz85o4tHz/QRjmpZ+Zi1o22l 1zY4eJzK+RW+QgopQtyHMTzbMnmaRuxaW+JISOBNERMGGnvGtmvXM/84KdQZmQXO5pa8 dEWSE0S+aPauLGxr+Hz+pqEBRqdFoB9DQuUpph13QAqCCQ03EeB8W+m9bjPS8vD4FvQ4 NGlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs18si107374edb.447.2021.01.26.16.39.35; Tue, 26 Jan 2021 16:40:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390267AbhA0AXd (ORCPT + 99 others); Tue, 26 Jan 2021 19:23:33 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:54769 "EHLO mail-wm1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729409AbhAZRMi (ORCPT ); Tue, 26 Jan 2021 12:12:38 -0500 Received: by mail-wm1-f54.google.com with SMTP id u14so3095602wml.4; Tue, 26 Jan 2021 09:11: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:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GLTk04HLYEc0gHiobpBa2Rf8M0brcNpNc92sIr4mWa4=; b=HzFN6h7VgYDJ0GrnNgJi+1OZOJvWq8H9Kfxp9YPDRGfeCSsEtzdczhImKVlpiXFhb7 gw+Y/TXap4Ysli5lNZTPUn10whpDmUpKkxEKvBbh5k5rv6FYRqFVrCF4T7Si4T8XN5/1 ZNKOVzrKiiopU3o3h3lylou2s8pl12nk0ScnVNJQUx1s9yGsFZ9O9sXgsW4WO+ChP3hK 5R+RoWEgz2vJRRnEH6XC6FFgWPmAPAkhjh5A4NC7B80BRNMWuXB6bWOwg2KYyajB/B9D K3c91bifbUOqoBNIPCjl58PdNVvDvYlscyKvzMIW4HzGSnFDvsSM/TXNlco3zvbql11A R7hg== X-Gm-Message-State: AOAM5327gUrvF1t1UeH/+4EunTdgig/+E/MFyqm2ZulPbn9ZLVk+Ded2 hnOUAGMnQ6gRCQUM0gAvDJo= X-Received: by 2002:a7b:c151:: with SMTP id z17mr623588wmi.15.1611681083373; Tue, 26 Jan 2021 09:11:23 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id q7sm29859745wrx.18.2021.01.26.09.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 09:11:22 -0800 (PST) Date: Tue, 26 Jan 2021 17:11:21 +0000 From: Wei Liu To: Sunil Muthuswamy Cc: Matheus Castello , "linux-hyperv@vger.kernel.org" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Michael Kelley , Tianyu Lan , Wei Liu , vkuznets , KY Srinivasan , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] x86/Hyper-V: Support for free page reporting Message-ID: <20210126171121.ujxojhmkjhuilry6@liuwe-devbox-debian-v2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 11:20:33PM +0000, Sunil Muthuswamy wrote: > Linux has support for free page reporting now (36e66c554b5c) for > virtualized environment. On Hyper-V when virtually backed VMs are > configured, Hyper-V will advertise cold memory discard capability, > when supported. This patch adds the support to hook into the free > page reporting infrastructure and leverage the Hyper-V cold memory > discard hint hypercall to report/free these pages back to the host. > > Signed-off-by: Sunil Muthuswamy > Tested-by: Matheus Castello Reviewed-by: Wei Liu