Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1899066rwb; Thu, 29 Sep 2022 03:51:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Nfe9w0sBYHuYoYhxwpPLJQ+kjZ41wmRXRz/BeujCFqJk2FDgu3O8BOsVzR+ySaeWlBFeU X-Received: by 2002:a62:ee0c:0:b0:558:5c4:97dc with SMTP id e12-20020a62ee0c000000b0055805c497dcmr2902400pfi.14.1664448693996; Thu, 29 Sep 2022 03:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664448693; cv=none; d=google.com; s=arc-20160816; b=bfP9fpqTvS6PplF2WDRNqtdu0h61IqjVmEFKW44WPondRG6oIyornXzxvhokpcP7tx l1YE4o2JQTwGuopn4uL76flHLgt4zF4kpTmJk/xdRvYfPXEKE9KueoRa0Rzabe+wOYki fysOF8v8vP3SxU4So0/zmMkXni3RQWRocdO5wkY873FexsI4mLttnMKzOIETD3rdG71u Culw1pfMLZKdy6G/x8AhCYxlxNabkpAZ640zpWvDptch8aK8q1PqdAHVbkerX/vQC4Qe KLfjGDboCeHX4eXNNZ8Stuai2bl9iRgFLhKtJMVbQFH8loPKiqWns+2V3Sp5JVmaKC/Z iGSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=33c+IysfP1nl2vviiqkB7+1UrsmV1vFHMMgfRpYodcc=; b=yHtKMPyzy6xqkhYCMXEVqiP3bG1kQixKNkBWBGbdlPssqIDBOWCAg1pLErxF+j2G9R c5ncUaDk0L9slF6XQscsi6z3/nKisbtvWFSiTX2KhNFCl8mne7HwlNbN/4WWqcQzudGq JE6vaxbxCiW5hgRIAWKgZKkJ20iFkXfsqdJTd2Z+HmFpJqS2I+Ugo/wUdk2XyrmN0FHx 4LBOhvHOHAA6HtJoU50p8No1P1Kg2In7BNxnuX8+FEcrn0ppjFPRlsrvCFeKx5Eq5C7O iVGQ2hT6J8dC4c1OvcfErMocFzNhhc8+GUFHMSc+tvCL2wCUZNWSuoYaw7VwPUqf3l3v IH5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=mdfXJ5M4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a1709026a8100b0017a0c197f3fsi2753479plk.335.2022.09.29.03.51.21; Thu, 29 Sep 2022 03:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=mdfXJ5M4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235130AbiI2KZP (ORCPT + 99 others); Thu, 29 Sep 2022 06:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbiI2KYv (ORCPT ); Thu, 29 Sep 2022 06:24:51 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C7B42ED49; Thu, 29 Sep 2022 03:24:50 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1134) id 22B7B20DEE6F; Thu, 29 Sep 2022 03:24:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 22B7B20DEE6F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1664447090; bh=33c+IysfP1nl2vviiqkB7+1UrsmV1vFHMMgfRpYodcc=; h=From:To:Cc:Subject:Date:From; b=mdfXJ5M4B75XJz3s4dQNhleREvvlToHImVy+O05Ec3I5zejCyXnDMiWv9qk3V6yiX 7mpum4UwPQICSwyrMrqhCzzAEd0W0thHeDybTz3FeHz8s0wmz/cKOFiCqk3ORy377Z fBsX8ueWxhLDK/F2r5i2+m4k+Gozr8uBTRUJIMeM= From: Shradha Gupta To: Andrew Morton , linux-mm@kvack.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shradha Gupta , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Shradha Gupta , Michael Kelley Subject: [PATCH 0/2] Configurable order free page reporting in hyper-v Date: Thu, 29 Sep 2022 03:24:39 -0700 Message-Id: <1664447081-14744-1-git-send-email-shradhagupta@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Configurable order free page reporting is enabled in page_reporting driver in mm tree. However, changes need to be made in drivers like hyper-v's hv_balloon to make it aware of the page order. These patches add support for the same. In the page_reporting driver we export the page_reporting_order module parameter. Following precedence is added in setting the reporting order a. Value of page_reporting_order parameter b. Value of order passed while registering with the driver c. default value (pageblock_order) Besides this, in the page_reporting module a check is added to ensure that whenever the page_reporting_order value is changed, it is within the prescribed limits. The hv_balloon side changes include consuming the exported page_reporting_order. Making changes in reporting these variable order free pages as cold discard hints to hyper-v and dropping and refining checks that restrict the order to a minimum of 9(default). Shradha Gupta (2): mm/page_reporting: Add checks for page_reporting_order param value hv_balloon: Add support for configurable order free page reporting drivers/hv/hv_balloon.c | 94 ++++++++++++++++++++++++++++++++--------- mm/page_reporting.c | 50 ++++++++++++++++++++++++++++++++++++++++----- 2 file changed, 118 insertions(+), 26 deletions(-) -- 2.37.2