Message ID | 20250129172320.950523-11-tabba@google.com (mailing list archive) |
---|---|
State | New |
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 621E4C0218D for <linux-mm@archiver.kernel.org>; Wed, 29 Jan 2025 17:23:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 20B74280261; Wed, 29 Jan 2025 12:23:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1BAFE280067; Wed, 29 Jan 2025 12:23:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F01B3280261; Wed, 29 Jan 2025 12:23:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D01B8280067 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 12:23:47 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 52BDD140FAB for <linux-mm@kvack.org>; Wed, 29 Jan 2025 17:23:47 +0000 (UTC) X-FDA: 83061161694.07.6F0EB4C Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) by imf07.hostedemail.com (Postfix) with ESMTP id 721FC40006 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 17:23:45 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=s1Ax7uD9; spf=pass (imf07.hostedemail.com: domain of 3IGSaZwUKCJUIz00z5DD5A3.1DBA7CJM-BB9Kz19.DG5@flex--tabba.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3IGSaZwUKCJUIz00z5DD5A3.1DBA7CJM-BB9Kz19.DG5@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=1738171425; 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=OG1tDMqftBd8Me3OBv+qFo5btVz20E1wK5N2Nsjw9qk=; b=KlGk1WqYBOpNVF/plDNatngkyAsAC4MHJbDC0SfgZN6W2Uk1TDyljQS+JAp3ohFe5Y5ckt u2xg3iSHc0dyA3KEmSriz6ejXsX+JQXNSVxHse//OPDXtV5Qw6E0z6y9D7DPm2KIzRRuEZ R2/tYZ7wvKdUKzwU449SPPRO7f+FD9U= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=s1Ax7uD9; spf=pass (imf07.hostedemail.com: domain of 3IGSaZwUKCJUIz00z5DD5A3.1DBA7CJM-BB9Kz19.DG5@flex--tabba.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3IGSaZwUKCJUIz00z5DD5A3.1DBA7CJM-BB9Kz19.DG5@flex--tabba.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738171425; a=rsa-sha256; cv=none; b=oA2d33Bw3hrBwoFkC5J7bq4Vd9TqbVYDqfQ88hUYAfqpkhVKnqPxToqyPL/s48sQ7nT/SW taMMsXD1ZxRTVbe+0Zn8jwRPFZNHnFb6xRyUwSh/q+wAVwGaWIMlute5fNi7bOQLGHzBQY DwV1icX72+k9asRmuDmtFV6yannq97M= Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-436379713baso33678285e9.2 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 09:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738171424; x=1738776224; 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=OG1tDMqftBd8Me3OBv+qFo5btVz20E1wK5N2Nsjw9qk=; b=s1Ax7uD9bNuH5giqsmhFxSLqiSuoiMGjEpXQBoC8yExb7zasZBNAn2lgVwnI7Skjvx Khfgs0NBKx342sbWGSGMjMjKVQgJLdnzWPsSuXKqLb4HOFrG7W+vz+3nCAX5I6BN5Q37 01WXTd8QuD/9CyoNhn1BhTk99uQdY4EXKzyjTCpT1rAgrBbzqDDDQg9ZKPBH+Ui7iwRn YkhfhWvSKFpIn6DywA/clNAgre0aBAjyhBJCDbCS7/G6+FgtmTVaZo+a+yaOs2rFU6TK Nda4PDnOlWauMdv3mcAd68rNMCGmE+wGMDmJ7CyrE3bGODGCQwPHwuCLHgO8VrCKSjU2 AgGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738171424; x=1738776224; 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=OG1tDMqftBd8Me3OBv+qFo5btVz20E1wK5N2Nsjw9qk=; b=F5cBsBSsPLRHSGHHTRBvEJf6X0iw4Oj9QoEsPdQEk4NxzpkWBWljAXvfDeftJPitAT guyU1vA95FRiXnfkaQ0tr3+yeBkKkX0cVLwyVw4sQYT1D+xndl8YLvghbNqUL8tQ54GL eTBoG8D0ltPcKUxim86FW/xOMFvEhOdnPM2nZgTArCF5pMLaeyqx7Ionm12p5WcT+hNL BGO576xyBgBrBLP/RLVwrI39zxxYrxr9JrNIWRlGW/qTKpuOVJNThdSLBIJSeOaD45cd 6Z63koJbz6WCD8pEYGEz4dYIHrpejJ92HJmdnTD/+J4b0hIaOuFiMu6ETjrHnawc82Oe TrMw== X-Forwarded-Encrypted: i=1; AJvYcCXTXaWX8a2F+XkgJWyE3QwYaU2Nu6NXnr9s/j1SBDRWbv+oQgiJDwrnXEHypWesqvtAjmj850rGow==@kvack.org X-Gm-Message-State: AOJu0YwqP46Sqq5RUm4ymP1nr879WR9MbaFj+SPe8svREc+hMrdAPIZ6 +uzuIeddePrm2KFuLAcVRS+gr/ymKvkHpKdEA75n2WSaZiNpVMuQGfAErI2lc5Aoge47eiy4/w= = X-Google-Smtp-Source: AGHT+IGvVHP8k2OISYlCvdzbSWOg8/1s8TB8QwJ8K/TIlHOXAaW3sCB6BDzqqteDbn13Mj2Ujoo4vShVnA== X-Received: from wmqe15.prod.google.com ([2002:a05:600c:4e4f:b0:434:f996:b54]) (user=tabba job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:1c97:b0:434:9c1b:b36a with SMTP id 5b1f17b1804b1-438dc3caac1mr34886695e9.13.1738171424101; Wed, 29 Jan 2025 09:23:44 -0800 (PST) Date: Wed, 29 Jan 2025 17:23:19 +0000 In-Reply-To: <20250129172320.950523-1-tabba@google.com> Mime-Version: 1.0 References: <20250129172320.950523-1-tabba@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250129172320.950523-11-tabba@google.com> Subject: [RFC PATCH v2 10/11] KVM: arm64: Enable mapping guest_memfd in arm64 From: Fuad Tabba <tabba@google.com> 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 Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 721FC40006 X-Stat-Signature: yfuj5w756fq8crwye476mthszc3hte4b X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1738171425-512776 X-HE-Meta: U2FsdGVkX1/n3BC9EqnLu17IKEO5Tf8+bFQHF/l9chz1j3uPOVzFk8WQszoIt7LRCmNx87oFLaV1LvZvDhETBe2tHtJNsceha2gLG3MjYPW1TT1a856qoU9+Hd4GXizOmN5dwGjaW4p7wAqK1QYVV/YaL1+kP/KzkGnIXkyp/6agfaLWEvpM51AlRApxP15NSccGBznJi7Yr362v4/l4Fpla2RjVZNWCJxG+gJLoOA4RU7nAzZ54lqI+M1B1fNH1f265gtJbeDoLbj4jFnSyFpVJ24OGX2zNzWC08pfDnXWua2wZ/dfG1GcqsucylKH9MGq6fDK03QqMY+N5/YDInvdAIh3Cz4QKBwcA7VFeTfs+BVitBWjHmbSFigS/W4uEvC2GnDJ6ZdB351USCBWAFgjkhGecjud+k4kSnm4DWGe5jdbyTj1FooiQSrsAPRLMyAgGr4XMj7j5yeg/sLyV28JVYiMSgkpEDaM3Q4iExCni1I74NgLj991OykATjl4/gio6G3MgVRb3jpKP+FDy4zaA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awkoFtohuCYikH6lLA6AWp2F0tQf3zL60RiKq+KBJD0Kmqw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000018, 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 |
KVM: Mapping guest_memfd backed memory at the host for software protected VMs
|
expand
|
diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index ead632ad01b4..4830d8805bed 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_SHARED_MEM help Support hosting virtualized guest machines.
Enable 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 <tabba@google.com> --- arch/arm64/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+)