From patchwork Wed Jan 22 15:27:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuad Tabba X-Patchwork-Id: 13947437 Return-Path: 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 B4D6FC02181 for ; Wed, 22 Jan 2025 15:28:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C380280002; Wed, 22 Jan 2025 10:28:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 47293280001; Wed, 22 Jan 2025 10:28:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33AD5280002; Wed, 22 Jan 2025 10:28:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 192BF280001 for ; Wed, 22 Jan 2025 10:28:16 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B6472140344 for ; Wed, 22 Jan 2025 15:28:15 +0000 (UTC) X-FDA: 83035468950.23.CD2886A Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf03.hostedemail.com (Postfix) with ESMTP id 942D420024 for ; Wed, 22 Jan 2025 15:28:01 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=bYH6LOWV; spf=pass (imf03.hostedemail.com: domain of 3gA6RZwUKCCUUBCCBHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--tabba.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3gA6RZwUKCCUUBCCBHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--tabba.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737559681; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6IPKS54xTLh0G0JL9zAQyWtImcHIleOjiond1cpHBfM=; b=CwAokrF3qdV+hlwzbvTKRj/E1vMIKEmiw1rE3R1gcH55eOHTOHnz4oyvwa7iAxJdfhfwBW Tp+u/GrSKl0zsbuLVM0Xz50UBDa8H77iNFCiCgqoHB+Y0S1zcAn18OBnqnFdbArLpbtJfD R535vgLaycwg9F08oZD4ikG1FVVsUsQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737559681; a=rsa-sha256; cv=none; b=kWn7sOZkZp9W31Q+7GAqpAUTnSs7IXeBfnsW/Ysl9iJCgfV5CDKB/CjIZTC2bXsM0tWn3D xjgqvZCVzwGi8jFGF7UFxq5jVjxhrC0pGsmFgwIK6LqKc+0NdCH4cE5yEdrcRV8uRbJfqT B7VcjOwoL9nfteBLph5bRmSJk/WxP3s= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=bYH6LOWV; spf=pass (imf03.hostedemail.com: domain of 3gA6RZwUKCCUUBCCBHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--tabba.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3gA6RZwUKCCUUBCCBHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--tabba.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4362f893bfaso38288525e9.1 for ; Wed, 22 Jan 2025 07:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1737559680; x=1738164480; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=6IPKS54xTLh0G0JL9zAQyWtImcHIleOjiond1cpHBfM=; b=bYH6LOWVGlSS0UktV9p0Rl1zahWrP0INwKYdmA8EZYX10/iWB0XCvA9nSFaGwGIAAF FtxICPFMAc+PvGuu0wdWMn1lidw+ADFj8tGR8xn30LfDI4EjUDSVsCxiaETZarEpT5Xs I+XA+E2WafOlgrxSyZmsBmcHZLCch7TQdAgRJFq3f+Jk4Kb6jTGNqFlX//qSgUOWqoxR wOfPONJQQ0lUI+IOCPAaL2FFDF75JnoxuMLs+VABYc1MIbK1d7sqUAonPyWEu7E3uxTP P8nzgLg7apAS1WfARl+QN/Q+Ac8vSnSZbqSeFdmso91PAmJrc3bEZicG1f/zOJVCc/k8 devA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737559680; x=1738164480; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6IPKS54xTLh0G0JL9zAQyWtImcHIleOjiond1cpHBfM=; b=JCsVEkCxhnt1KPelDBgqr1nmMWRtvQY9I2v7op8ErHkjuR4mFbETu2gtfjfUtrJQ4o VdaYTkReJYDQFMj4J9/CLIEJC1HH7/Oh92T94lHAAi4iHMcOZCB1xkXnurZcIDW/K2Tq iAhQZhM0WsLzwZh7oD4Boj/siPxF3yx8HB9CTNLRixiVINmjUns+6ZfGulOm7CERrgJD zCa5ILM2fGwLfljEfCddCZSoGqMMxMsTD6jbL3o8LjbU2K/oADIHJagBcoa1BYuLjlxv lWQ+absGFGBDeSOm7zKD3Z9aXRdPTbsfwxlvOriX5KTWt9/eoA03libA3dkrCwiSRUJI DHIQ== X-Forwarded-Encrypted: i=1; AJvYcCXWzWUWeEho9LgBzdPjKEWEKZWPvtSMq4lZaJtR75BXSGV4I0TbL4DTNimxUYhbg2LexeC2hILXeg==@kvack.org X-Gm-Message-State: AOJu0Yzh7XcgzvnL2r5zCgYQVRHzf9qNuJd7+kiq1Yam2qSsbne6cnMZ UFzQlMEkSBjh+Wfvwf+DyORrL4dlHcrmlLBylBEDS4Lopy+ZrGIw+93QzJ3exf4zwUBCm9tYMQ= = X-Google-Smtp-Source: AGHT+IHKqC3XO4cCp4hQMJG/KxA/l5U2Z4NRyzkp8RVnNUMgP+pHap4S48R+U41XmL0XQuq/sUwK5vqtFQ== X-Received: from wmjt19.prod.google.com ([2002:a7b:c3d3:0:b0:42c:bfc2:aa72]) (user=tabba job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4508:b0:431:547e:81d0 with SMTP id 5b1f17b1804b1-438913e1c00mr237078585e9.11.1737559680156; Wed, 22 Jan 2025 07:28:00 -0800 (PST) Date: Wed, 22 Jan 2025 15:27:38 +0000 In-Reply-To: <20250122152738.1173160-1-tabba@google.com> Mime-Version: 1.0 References: <20250122152738.1173160-1-tabba@google.com> X-Mailer: git-send-email 2.48.0.rc2.279.g1de40edade-goog Message-ID: <20250122152738.1173160-10-tabba@google.com> Subject: [RFC PATCH v1 9/9] KVM: arm64: Enable mapping guest_memfd in arm64 From: Fuad Tabba To: kvm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mm@kvack.org Cc: pbonzini@redhat.com, chenhuacai@kernel.org, mpe@ellerman.id.au, anup@brainfault.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, seanjc@google.com, viro@zeniv.linux.org.uk, brauner@kernel.org, willy@infradead.org, akpm@linux-foundation.org, xiaoyao.li@intel.com, yilun.xu@intel.com, chao.p.peng@linux.intel.com, jarkko@kernel.org, amoorthy@google.com, dmatlack@google.com, yu.c.zhang@linux.intel.com, isaku.yamahata@intel.com, mic@digikod.net, vbabka@suse.cz, vannapurve@google.com, ackerleytng@google.com, mail@maciej.szmigiero.name, david@redhat.com, michael.roth@amd.com, wei.w.wang@intel.com, liam.merwick@oracle.com, isaku.yamahata@gmail.com, kirill.shutemov@linux.intel.com, suzuki.poulose@arm.com, steven.price@arm.com, quic_eberman@quicinc.com, quic_mnalajal@quicinc.com, quic_tsoni@quicinc.com, quic_svaddagi@quicinc.com, quic_cvanscha@quicinc.com, quic_pderrin@quicinc.com, quic_pheragu@quicinc.com, catalin.marinas@arm.com, james.morse@arm.com, yuzenghui@huawei.com, oliver.upton@linux.dev, maz@kernel.org, will@kernel.org, qperret@google.com, keirf@google.com, roypat@amazon.co.uk, shuah@kernel.org, hch@infradead.org, jgg@nvidia.com, rientjes@google.com, jhubbard@nvidia.com, fvdl@google.com, hughd@google.com, jthoughton@google.com, tabba@google.com X-Stat-Signature: cuzm9zf98h4zacckgx96673pixj6mbo1 X-Rspam-User: X-Rspamd-Queue-Id: 942D420024 X-Rspamd-Server: rspam03 X-HE-Tag: 1737559681-101206 X-HE-Meta: U2FsdGVkX19CY92vLLRsnOhUPG62XSRgNBuzAll7HKipnRLZ6UdfEoOr8qrst1r0zeyGVOhDzSxNUhw5GVIjmsBJpMo87gTGMgf8xAfM4M1cRbcrXYST5VB/VZDezSOAxQ4n8EaxKdoGmWCndStHGMltm3u3LLGVY2HSu8VW8qZDYSozKIC11qPixqGA0+eup1a/iady9F97BEtfdch404BLTgePuVkcFbrqOqjNtMjTWhrTi9wHIcR5T3xqljGIa8LOxsE9GXMudaXIsukdnA5+WMTs3/YiENtXQ7yF+ovGM4uzefKM1XEDXAW/6oAWiKTKAHvdiPwNvBQoQz5d3HS/WaRLTrZIvmHgiku3vEkgb9ge86LeUvgMt/5/jqFCF7FaOGJ6FfknaHoVPC1cCNmdz6qeR/3fnDUsy5//OLfbCazwMG1SfQ4xTNi4zXaz4le0QouZou/IwQfAFy5yqtNkVSC8XGNDb5iQEPhlyIUF4/skS3uTDB8PD0fWsSaQm8DcTdMeHpLni5pQrXtIw7Qbp748Ebj2/MAAyFe940UAFhbEnww3nC36pXa8wE9YBSRRb8tcwnNQTD7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ilter, spamicity=0.000029, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Enabled mapping guest_memfd in arm64, which would only apply to VMs with the type KVM_VM_TYPE_ARM_SW_PROTECTED. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index ead632ad01b4..fe3451f244b5 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -38,6 +38,7 @@ menuconfig KVM select HAVE_KVM_VCPU_RUN_PID_CHANGE select SCHED_INFO select GUEST_PERF_EVENTS if PERF_EVENTS + select KVM_GMEM_MAPPABLE help Support hosting virtualized guest machines.