Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp31396pxf; Wed, 24 Mar 2021 19:59:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOZQP6FZO/aFGYHjvk7jmg/lQzHE3dQWdjM2ThDKsoEvh5X/ofj/5L1Z5mtbSD+iW3XXOL X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr6966436ejb.238.1616641169688; Wed, 24 Mar 2021 19:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616641169; cv=none; d=google.com; s=arc-20160816; b=PAY+xiMfIUH16OqifWh83W9p2a0ulKhG0/FNAaovDVz1WfWqB1wA0ivYukpXOO2ImP 8v4Z4/EdjEOuT21659Dor3BVzqB3pYU01Y7P6jks3nysLz5WKICXes78f4NaO4iRq1Kv Oy3esbEOlwITdu6aWjhH2ZsHjTdU/ugs49QlbzpDN1exvhWs3rIzhWJ42sGg/LNH2DG4 I8VhFlrcrfRCeNILH7qpTf0oE3rgYyuVvaNLtxsk7iCmbUG0/OAe9pcPULWX8LcPRvxx ul9w/2D6JgtUTs4kM49SUD66VeIR9XD67wsnKCQgMGQpZc18l7H3PcIxeXR0Oxc3exwU gEWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=E3zu3hgn6dTzJYeSkiy41tbdRXf2yBGvrgXEBWgvbao=; b=LimzHQBMrQC7IkpvQ3L0FN/gw4jgSNPJl0VGYvw1+PUb4459Anqf2HxifMoTzpwZ8T y2lH2QacSOmRrvvhelG/yKyNWATZuKxfipbql8llcqwMbtRsEa5CuFmeL2RUUXsb37HW W8bhNFpZaMYSGaPwkdX+tfdkSt4UknTIDDlXpeFhpwARPSX/8ovh9ZQijBdwtK71qJev UwUrHe0APl84c9JwTTMjblD1fnPnVo72o2g7rtNr0o6KAe/KD0eQhuQcrlrXFy9jmmEp FCReMcM9dl5PnbqNHn9rVybTTm5hIyfXGg+++RWItg/LIG3gg1rI1HfjojvLoxismuJI BYZw== 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 y25si3269353ejb.622.2021.03.24.19.59.06; Wed, 24 Mar 2021 19:59:29 -0700 (PDT) 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 S232854AbhCXLhD (ORCPT + 99 others); Wed, 24 Mar 2021 07:37:03 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:37794 "EHLO mail-wr1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232680AbhCXLgW (ORCPT ); Wed, 24 Mar 2021 07:36:22 -0400 Received: by mail-wr1-f46.google.com with SMTP id x16so24078774wrn.4; Wed, 24 Mar 2021 04:36:22 -0700 (PDT) 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; bh=E3zu3hgn6dTzJYeSkiy41tbdRXf2yBGvrgXEBWgvbao=; b=DseNVkfQcyWK+Q6nvs9HKBKcyZnEw5q1jEmyyrHk8CnWgfmUWUxcC/ZKwRlBtVkgXO S9BoH+8i7EStYPFC2W/Yf6Lz1d3zojBwwFkhN+umN2E0NHake9K9k3d7cNZ9oG+T6DRF xdTUffv1L0dCO2XDOzZLcFGPo6kvERLOGTGGR3ZdwrcKJTBAdm0dO5F0TicwYXB09m/d eJvq9LJ2LJ+aGas9QUAG4EBEIlsr1weiH+qAsvnRsEdJNvX1gB20GcMCrzP+pbSMhrgY USnB9kA5htDYjAItSIJj9KkZnBxi0DpDQ2IKi21KUJdSwzRA6ZCWdaWhLAdLczj9Hw6t Z3gQ== X-Gm-Message-State: AOAM532AjilDclPAqizrfS+YmjQs2XVLzTtvSM5BeBPpPvp5g0A4J5ck O6TyojQiRzPa+6MpfGrz2LU= X-Received: by 2002:a5d:6312:: with SMTP id i18mr3030212wru.149.1616585764783; Wed, 24 Mar 2021 04:36:04 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id d204sm2190354wmc.17.2021.03.24.04.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 04:36:04 -0700 (PDT) Date: Wed, 24 Mar 2021 11:36:03 +0000 From: Wei Liu To: Sunil Muthuswamy Cc: "linux-hyperv@vger.kernel.org" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Tianyu Lan , Wei Liu , vkuznets , Michael Kelley , KY Srinivasan , "linux-kernel@vger.kernel.org" , Matheus Castello Subject: Re: [PATCH v5] x86/Hyper-V: Support for free page reporting Message-ID: <20210324113603.rtvczlrvdp6vhl7e@liuwe-devbox-debian-v2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 06:47:16PM +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 Applied to hyperv-next. Thanks.