From patchwork Thu Aug 1 09:01:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuad Tabba X-Patchwork-Id: 13750001 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 AF6FEC3DA4A for ; Thu, 1 Aug 2024 09:01:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 701E16B00A3; Thu, 1 Aug 2024 05:01:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B1156B00A5; Thu, 1 Aug 2024 05:01:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 552A76B00A6; Thu, 1 Aug 2024 05:01:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2D3B76B00A3 for ; Thu, 1 Aug 2024 05:01:49 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id CFA99A0941 for ; Thu, 1 Aug 2024 09:01:48 +0000 (UTC) X-FDA: 82403083896.05.C6EFF64 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf09.hostedemail.com (Postfix) with ESMTP id D2CD1140043 for ; Thu, 1 Aug 2024 09:01:46 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="H/AGfo4u"; spf=pass (imf09.hostedemail.com: domain of 3-U6rZgUKCIAxeffeksskpi.gsqpmry1-qqozego.svk@flex--tabba.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3-U6rZgUKCIAxeffeksskpi.gsqpmry1-qqozego.svk@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=1722502851; 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=8IHbq3nRTqO2jYrZNiv7GHjdo//AKiTG6CX0+AzFu78=; b=q/5ZYB8BPZ5d6eX3hSc+8SUkVh3mAZn+zkvl0TrbrC+SKj9GMwv5atixUQP/cqBlrtSQv2 CJEXLTh+r8WsW1CmD7FLxwD1Gh8bkE1EvWVhZ3tyTCJOK6fdG3kAFTkUuP8mdK/UKF8gaq QvUy5QQyz5byTgiS00JTNyeDi3BNyHE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722502851; a=rsa-sha256; cv=none; b=ZgXnCgHFD3XHjxojEvBYkuS8apyoiE4rRwib+7RLdYcUJ8+B7dVAVgH7UFXSL7jTQTAXHP xlr6YKMwBOLt/wLkMgdCXhCzXQ/yP3SvlIBkD373DgGZO5MC9Ampu14XeQW5N7hucZghm4 AJgVwsJxl3/I9IVnxWEWqdH+TV0f9Zs= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="H/AGfo4u"; spf=pass (imf09.hostedemail.com: domain of 3-U6rZgUKCIAxeffeksskpi.gsqpmry1-qqozego.svk@flex--tabba.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3-U6rZgUKCIAxeffeksskpi.gsqpmry1-qqozego.svk@flex--tabba.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-428040f49f9so39730175e9.0 for ; Thu, 01 Aug 2024 02:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1722502905; x=1723107705; 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=8IHbq3nRTqO2jYrZNiv7GHjdo//AKiTG6CX0+AzFu78=; b=H/AGfo4uE3WZaaGoMEzvd3Rya8iJwYii2GMBxwPtJnb2jsqj+mJO3mMJQIV9cPM5Za HjVk4GAG7ev+PXzHuiUzaYyn4uXIGFe6P/O3jg7wd7i+ryvASdXwdfGffMQh9Re7GfQs ABmn9n6PTD8BGc2D/2Rm23ZxWLemZP4iIatpKoOVREoBk/5wAO3UMQZFLWWL8KpxuZkQ +16JBKo1Cq50rg/ytB/WWHxtSABpUYhU7S3LQn7x3O0CEPVoSH+Ay69CuaFiWR+ZXpl5 Mp0iuftCBS2LyDUC5knu3JY21XBcbVkU2+47+R2GmD0p38hAwVK4lOGKHy6Bz8Qv/arq /Hjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722502905; x=1723107705; 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=8IHbq3nRTqO2jYrZNiv7GHjdo//AKiTG6CX0+AzFu78=; b=gchwNJfLaFktCQHIoismZ4GzHba5b0DvRyw+IrlOWnklN7mNjrApw4RW696V1x8UnZ RXg5ikDj1P7OarCcHgs6kTjAdHUoXyRJsq0mlxqb9FJtRnQ7fyCUwwhQXgEYWaSGX2Nh mV0tOZnIq+3C3UQvETly4tC+dAt2cFOvGjHEwEQKPIg7cgO0yCV63rFzmLK83bxeNVw0 VEUoBGcG+U+nHA/kdAAqFQFN2Ri//rf9SqKL+B5YKBUK5zRA1S+8FCaW91VhB1URqPll cdU/Zz7PRynMUrO0H4JwYJe7E39cH48Qu6Jpuosh0jyOon1NyVw5Pz6NXuFX+QLayeco J86Q== X-Forwarded-Encrypted: i=1; AJvYcCXCuQEKcQwcUmWJMQNhROuNU8B4/AAKW0ldnmI0pZaCCL/untdyunORMcuTm2IxWuhwBKJtIm1xGz4CTmUK6XHcSd0= X-Gm-Message-State: AOJu0Yy1tdKdWtioVon5+xm4YOJjkbbYuzsu0VUNel710Sfp1UWcqVLi /TXFMBoEg5/9TltB/qlAukaI1FRLVxCTalzcZ7blKXLqvE4FUmoS6+mmGWYLkP90btgnnDGLdQ= = X-Google-Smtp-Source: AGHT+IEYAOIgImAvC/AtXq27Mfc53Y7PA+fVTX3Rlx+IY0/mIU2S6P/V0TnGwu9UoSydDFeidGnaFL2tvg== X-Received: from fuad.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1613]) (user=tabba job=sendgmr) by 2002:a5d:4569:0:b0:368:5d2:9e5b with SMTP id ffacd0b85a97d-36baa9ed838mr3368f8f.0.1722502905208; Thu, 01 Aug 2024 02:01:45 -0700 (PDT) Date: Thu, 1 Aug 2024 10:01:17 +0100 In-Reply-To: <20240801090117.3841080-1-tabba@google.com> Mime-Version: 1.0 References: <20240801090117.3841080-1-tabba@google.com> X-Mailer: git-send-email 2.46.0.rc1.232.g9752f9e123-goog Message-ID: <20240801090117.3841080-11-tabba@google.com> Subject: [RFC PATCH v2 10/10] KVM: arm64: Enable private memory kconfig for 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, tabba@google.com X-Rspamd-Queue-Id: D2CD1140043 X-Stat-Signature: 18gnbz7jiar9h9qjq9qsaira9497cs9a X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1722502906-702053 X-HE-Meta: U2FsdGVkX1/GtdRa8BZdyVyBW0RQpGkPQjwdQaGHpSzZUeGhcpMh5ZCRg2u5hIny2AmbvvxhdQBoxhxdKJN2Kjfqz7RMTo4yHwqNWjcxFCS8eY2cj7RBqIG8zj+BWvom7Q2P7TcgIB7XHTlInhqTDVbi0nz/ZQy7sETcPvXroEIa1kKXuy87HzMvqf3Mu0KhlNWwBNKlYqvMrsI+08dX8GbUsRPAmHoOwY54gSsC7JmQZ7hbOByt/wUJpaccfMUB9uLKd97KeprAne87TbHis5+lmP/eJlWuJcVKUFqnSeXj3DS6TFofD0dfAA5F0EN/5voRB2lXMcdTPlnrUYiusdOeAOK3AvcCaFBi6goi7bJ8UklcnDIGoyVFdFrw+L/HOhuBhaKlErPxBglNnoJY5ZoqR9oUQ3aVLRESCwg1Iv9iExL08qr4fvU0ll38+DtJw6HoOnsi0NN7uMViXUWztI98YNlj9fbriDqSL2fDJvdVKBbNUE5hd/zk7KGpaL6kY4fNV9DGPvuts3RSPn6AN3yFuY6T8nK5O+0XW3sZUW2Xucn67mR38A9JPPBgoXE8gq6DR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op: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Now that the infrastructure is in place for arm64 to support guest private memory, enable it in the arm64 kernel configuration. 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 58f09370d17e..8b166c697930 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -37,6 +37,7 @@ menuconfig KVM select HAVE_KVM_VCPU_RUN_PID_CHANGE select SCHED_INFO select GUEST_PERF_EVENTS if PERF_EVENTS + select KVM_PRIVATE_MEM_MAPPABLE help Support hosting virtualized guest machines.