Message ID | 20241105164549.154700-1-shivankg@amd.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A904D31765 for <linux-mm@archiver.kernel.org>; Tue, 5 Nov 2024 16:47:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 89CF56B007B; Tue, 5 Nov 2024 11:47:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 824006B0082; Tue, 5 Nov 2024 11:47:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 676F26B0085; Tue, 5 Nov 2024 11:47:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 46A746B007B for <linux-mm@kvack.org>; Tue, 5 Nov 2024 11:47:19 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D72A11C2151 for <linux-mm@kvack.org>; Tue, 5 Nov 2024 16:47:18 +0000 (UTC) X-FDA: 82752620790.30.F9508CC Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2064.outbound.protection.outlook.com [40.107.92.64]) by imf17.hostedemail.com (Postfix) with ESMTP id 3165F4000E for <linux-mm@kvack.org>; Tue, 5 Nov 2024 16:46:50 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=GFb4TmS2; spf=pass (imf17.hostedemail.com: domain of shivankg@amd.com designates 40.107.92.64 as permitted sender) smtp.mailfrom=shivankg@amd.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=quarantine) header.from=amd.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730825070; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=RS8Nrwsw2BXdXOZ6i/UQ4YfnkD5oo8PUth2GFkeVzb8=; b=BXm2LZLTQeGChDG8fleMkxDq0Bnhlw8BQrcjnlhviCCW4R+VuPgW+Tdu90+Bs7tJ/b3KLT Q4bQz81NRU6TNx0UsjWHJ+LfVgmavleioMTY1pgDIErHVJA2U3JF7YyYTmPfMnqB6Fde3v c0u8zmZNbKIeJn6BAZ94Qd7OkLq948o= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=GFb4TmS2; spf=pass (imf17.hostedemail.com: domain of shivankg@amd.com designates 40.107.92.64 as permitted sender) smtp.mailfrom=shivankg@amd.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=quarantine) header.from=amd.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1730825070; a=rsa-sha256; cv=pass; b=zH9+ZMwLLUkdOT0+E+5CklY/KsBX0g81/7aqiPy/egimKNw5Ul5p8oGPvRf0M+H+cm7HSx 7OP5qJCeb7W5sSpx9Xj0teR2xJ4k+oWEKf40hnucOK0skQlIBHwaJPirHlPdQHYY/Zqdh7 Yp2pe8bvsne3EOuWLG/+LdUG6u4GmQo= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PD9rhGM5rq3lg/QCgn4MpFa0CQwed7nDrEinuD6QHoDUAi17QGd1s5AYv+tBUO0A+NzohlgRufOsNAWOdxzolGs0qw9FBnQQQm90YJEJ77ghMFXX+SGVFbuLi3yIwePvLjNOOZT6j61ffz8Ij9xyg1T013i2TYcAwxCqtFbVPHRmhl3ASg0YvvTM1pivs45+5xnW73ohT8N3cMpie9H4My0asXyETdxkJ5+bSVsql/PqVQ2/lkdz1tuYhSZpYyh6W1Athk8w7fUcrrHA2sT2I4xDEgDbM6jh/PQHV39zapcvXUN/oNXnmHVzMczhWNZFwSuzLqFxfERSPq96Rh35rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RS8Nrwsw2BXdXOZ6i/UQ4YfnkD5oo8PUth2GFkeVzb8=; b=cK8GEhCMJMwzyMLQrm7g8OfpiMXmxDsRruhIm36N7GAIUFHIW8gCeA+o7D+loapfNGuMcGPJXLlCMlz5qV2z8Kk3Ri9Iz/Zf0mQOEupzxUc2N3BGlcdSACqeYCMBOHsFou/PZaxJJ3a4jT18FopknQVysyuNgJlMJHxJT03ZYy88ymGKIJAcqrQ0MQDHacThE/yURve0qApgjL9fKhhatZdH7gr1GksobEO1EoalxYLe8OkePrIA6gkd0QelkFjI0JXmfQ4VqHeHAx7ztnLs9FhjDcXRQbEFGtJyUn5gab2aKx+W4Kf7DogxKmaBpAHDoI0SJ8CNsRKEf1GU58tdYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RS8Nrwsw2BXdXOZ6i/UQ4YfnkD5oo8PUth2GFkeVzb8=; b=GFb4TmS2dVcJ9yYRgkMa0558h8FeJnA+aOvkxZuzOBCSJFvyF3X+0/nRUat2spr1Yxw5vhdl5r/5VynolLP0C2FWXN7D39AD1sLdamw0oFm3HgLE2mpI3vfuB07xjF2uYTxQO+uUH+k8e8g1fmq32mEhuIbDfLFf5034k3fNmbw= Received: from CH0PR03CA0288.namprd03.prod.outlook.com (2603:10b6:610:e6::23) by CYYPR12MB8732.namprd12.prod.outlook.com (2603:10b6:930:c8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.31; Tue, 5 Nov 2024 16:47:08 +0000 Received: from CH2PEPF00000149.namprd02.prod.outlook.com (2603:10b6:610:e6:cafe::53) by CH0PR03CA0288.outlook.office365.com (2603:10b6:610:e6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.31 via Frontend Transport; Tue, 5 Nov 2024 16:47:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH2PEPF00000149.mail.protection.outlook.com (10.167.244.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Tue, 5 Nov 2024 16:47:08 +0000 Received: from kaveri.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 5 Nov 2024 10:47:00 -0600 From: Shivank Garg <shivankg@amd.com> To: <x86@kernel.org>, <viro@zeniv.linux.org.uk>, <brauner@kernel.org>, <jack@suse.cz>, <akpm@linux-foundation.org>, <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>, <linux-api@vger.kernel.org>, <linux-arch@vger.kernel.org>, <kvm@vger.kernel.org> CC: <chao.gao@intel.com>, <pgonda@google.com>, <thomas.lendacky@amd.com>, <seanjc@google.com>, <luto@kernel.org>, <tglx@linutronix.de>, <mingo@redhat.com>, <bp@alien8.de>, <dave.hansen@linux.intel.com>, <willy@infradead.org>, <arnd@arndb.de>, <pbonzini@redhat.com>, <kees@kernel.org>, <shivankg@amd.com>, <bharata@amd.com>, <nikunj@amd.com>, <michael.day@amd.com>, <Neeraj.Upadhyay@amd.com> Subject: [RFC PATCH 0/4] Add fbind() and NUMA mempolicy support for KVM guest_memfd Date: Tue, 5 Nov 2024 16:45:45 +0000 Message-ID: <20241105164549.154700-1-shivankg@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF00000149:EE_|CYYPR12MB8732:EE_ X-MS-Office365-Filtering-Correlation-Id: 706376f1-6bcc-4579-81b5-08dcfdb97cb2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|82310400026|36860700013|1800799024|921020; X-Microsoft-Antispam-Message-Info: oAm5WvfHnHi1kwbK71H0X7hU6WE2tssB60WtgdXL8lClqU9F4VLJxoVUgYmCm1Hj/FZeb5Ngfc7ll5VMMYEfe5gwceM1Dw5WhTKS/MUpk96D9SU8eVg18EpxyI2Vzy2RMBYJ+MDO/8gDD9ucqliJ3/RgRigoqO1gyM/TRt6MnM0lLvqXb4xDEtdWF64zg9tNLzoCmp+96QkuBKOA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bDVDrTk6bXHNgugrOahpTUCM2orn4QXy9oEtBAmK4Mu1Zkm2K05MascafSYcgSnD3IiH3+3VAsh0vb2wie7OPxOeMVzGy9e9pznLgEeXKbyzXYtkgHi6 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(7416014)(376014)(82310400026)(36860700013)(1800799024)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2024 16:47:08.1680 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 706376f1-6bcc-4579-81b5-08dcfdb97cb2 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF00000149.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8732 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 3165F4000E X-Stat-Signature: hdpufztmqmkb9qkifryg7chxmtpw7h88 X-Rspam-User: X-HE-Tag: 1730825210-750073 X-HE-Meta: U2FsdGVkX188qI4Ix9syct4CuwnLQvZFEPUMG8MNH+Gr8MjZeMx7Q8e6ACNGk3QE+VH9sUUZvlyYAbkXRcxE7ylcjApmFAKjJIyAquxRXLDIump1rAruWzv20F2r621kvctjIgAvYT+S33fYgbg0j29RP9dkzHaW2V71RLqEBx8YSfM75Eh+PA30FPakt7npG3fk2PIx+MBYkRT3i67Op9WUwC9D5TMYpKH1Ucmh7NuJ8lrcd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48ztYW/HFMEdTgyLcb2k7/gQlE4oWvuruHC21x3h+J6o7UbDtQOHos6mVOusFyN6zUVEiHmWB54FUeGQ2tAQ1+/fAu/cWJgSRhc9WNUH/xdalss2K7f7XkEikEZM4/Y84C+CHL0XzTBaHcIoAUG8EXhGnwVMHeReCavNr4IAx/UhB4oqSiTSXHOb8UwHRFQdhaYRmlg/85QmpY5ao1qvhHU3nuOBxUhyOAL0zl8bwaAKO3TcN2JfPUDDkIh6me4SbIa2dD+4PQ== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Add fbind() and NUMA mempolicy support for KVM guest_memfd
|
expand
|
On Tue, Nov 05, 2024 at 04:45:45PM +0000, Shivank Garg wrote: > This patch series introduces fbind() syscall to support NUMA memory > policies for KVM guest_memfd, allowing VMMs to configure memory placement > for guest memory. This addresses the current limitation where guest_memfd > allocations ignore NUMA policies, potentially impacting performance of > memory-locality-sensitive workloads. Why does guest_memfd ignore numa policies? The pagecache doesn't, eg in vma_alloc_folio_noprof().