From patchwork Wed Oct 30 13:49:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Roy X-Patchwork-Id: 13856552 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 6B8DED5CCB0 for ; Wed, 30 Oct 2024 13:50:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E0EE56B00BF; Wed, 30 Oct 2024 09:50:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D95EF6B00C1; Wed, 30 Oct 2024 09:50:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C0F3F6B00C3; Wed, 30 Oct 2024 09:50:41 -0400 (EDT) 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 9C6156B00BF for ; Wed, 30 Oct 2024 09:50:41 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 511301A0D6E for ; Wed, 30 Oct 2024 13:50:41 +0000 (UTC) X-FDA: 82730403252.15.6F5F5E9 Received: from smtp-fw-33001.amazon.com (smtp-fw-33001.amazon.com [207.171.190.10]) by imf09.hostedemail.com (Postfix) with ESMTP id 2CE47140017 for ; Wed, 30 Oct 2024 13:50:20 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=amazon.co.uk header.s=amazon201209 header.b="JEO3SjG/"; spf=pass (imf09.hostedemail.com: domain of "prvs=02621381b=roypat@amazon.co.uk" designates 207.171.190.10 as permitted sender) smtp.mailfrom="prvs=02621381b=roypat@amazon.co.uk"; dmarc=pass (policy=quarantine) header.from=amazon.co.uk ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730296184; 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:in-reply-to:references:references:dkim-signature; bh=4gTnpkauDGYjzwRVywsrh01v5XrS76J2GZbKVdbAfi8=; b=btotkSjmX15YICsSmv6q4axpPKnR7FS4Lbxtl72G2mGj+lL2wD7XSlj+2Zua2YJYjbB8aJ 8Datwr8TF9smJ584BiHHbDpqGSw787IOWhVSxO4eprXNMqG1GIw0DxIzg2qQiZcQ8bkzjV 2yJJDjcQ8FTActkhAZEa5+GOai0M8dU= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=amazon.co.uk header.s=amazon201209 header.b="JEO3SjG/"; spf=pass (imf09.hostedemail.com: domain of "prvs=02621381b=roypat@amazon.co.uk" designates 207.171.190.10 as permitted sender) smtp.mailfrom="prvs=02621381b=roypat@amazon.co.uk"; dmarc=pass (policy=quarantine) header.from=amazon.co.uk ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730296184; a=rsa-sha256; cv=none; b=hrrjyKaDWU/TNblyllzhYZpxJIL9IpBqRAYffblPtc31F4KGiKhTkx9S5zd9tGb87kgIg9 XgfBAkcWxzsWg6Zk979FB9OyUiN6q2izPosampNQWSp1D+gwUsybKBaSZRddMAFiYX39TP rWDty3FvCoZvtMRZS4IQzd6uR+KK1Wk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1730296240; x=1761832240; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4gTnpkauDGYjzwRVywsrh01v5XrS76J2GZbKVdbAfi8=; b=JEO3SjG/x5RKrRDpPfRzP0BnQbGAxEjMc9E83W2ydOFrpM+rp+JpwMAT b0YnqgQEddG0VWrCRBTYrtTkIACoGTjglygDYuSo2GfzHoZDxQ0eGB5nm sMnY1LVS0OcdTyjkqXQsOaS3Oh8i8yG6bzHLaGZwObLoGkyldBlE69Hrl U=; X-IronPort-AV: E=Sophos;i="6.11,245,1725321600"; d="scan'208";a="381122811" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.25.36.210]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 13:50:38 +0000 Received: from EX19MTAUWB002.ant.amazon.com [10.0.21.151:4737] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.24.36:2525] with esmtp (Farcaster) id 6a75726f-118b-4ebb-b916-ac128103b7c2; Wed, 30 Oct 2024 13:50:37 +0000 (UTC) X-Farcaster-Flow-ID: 6a75726f-118b-4ebb-b916-ac128103b7c2 Received: from EX19D003UWB001.ant.amazon.com (10.13.138.92) by EX19MTAUWB002.ant.amazon.com (10.250.64.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.34; Wed, 30 Oct 2024 13:50:34 +0000 Received: from EX19MTAUWB001.ant.amazon.com (10.250.64.248) by EX19D003UWB001.ant.amazon.com (10.13.138.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.35; Wed, 30 Oct 2024 13:50:34 +0000 Received: from email-imr-corp-prod-pdx-all-2c-8a67eb17.us-west-2.amazon.com (10.25.36.214) by mail-relay.amazon.com (10.250.64.254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.34 via Frontend Transport; Wed, 30 Oct 2024 13:50:34 +0000 Received: from ua2d7e1a6107c5b.home (dev-dsk-roypat-1c-dbe2a224.eu-west-1.amazon.com [172.19.88.180]) by email-imr-corp-prod-pdx-all-2c-8a67eb17.us-west-2.amazon.com (Postfix) with ESMTPS id AD78B4032D; Wed, 30 Oct 2024 13:50:24 +0000 (UTC) From: Patrick Roy To: , , , , , , , , CC: Patrick Roy , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC PATCH v3 5/6] kvm: document KVM_GMEM_NO_DIRECT_MAP flag Date: Wed, 30 Oct 2024 13:49:09 +0000 Message-ID: <20241030134912.515725-6-roypat@amazon.co.uk> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241030134912.515725-1-roypat@amazon.co.uk> References: <20241030134912.515725-1-roypat@amazon.co.uk> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: irzk8861qga45eiet3gttqqc1hmm197p X-Rspamd-Queue-Id: 2CE47140017 X-Rspamd-Server: rspam11 X-HE-Tag: 1730296220-719021 X-HE-Meta: U2FsdGVkX18sWfb2y8eHnqfqajyVzjYNu0ecU/7oIzz/Ht1lEsW28AEuFcqMjDLZBJzDR4fB6eLgGaWnqhhG9LRIO6HlBXGrsdEDmVadcMRYK8ZrBwqFCM1T/2ixYlBn7UItYYkLnPi6JajaHqc3C4udLXvf9PKXZ3UflspdL8b+HV9qGCRDCCAKKoxPWfzXcunyh0Epek3FuCRDuj3Btesw9fJGQd+QPqdONPBs675j4DOvElxxczWdNnHT4Cn+2tjGpifBkx8001MBQOQqF/LHQsUsdZ0DG0TZhFrVIgPXtZsjPqBbiE5SAlox/YxojZp4sXMXu4GDKaBwMCR0Vc9vRXHGFcXt7Ppmqwm88OruakUjOBEkzXwmiT4Ai4PN4HvRE8zID/MBZ0RzMrZoEC/VplkfU8OsWHNzI1tGQLt0VJBjwhK4NESrY1L0LpQq9otgifGJAPpcFnv2aHSIN34R9eBG3GpPE0qyu0AoE0rpybysDyScaVsbZNEvjL/Zic+9tuAw3WTPmFmt3t9EOKxCpo0Fp2xKbzjWHZVe2xWRrfYzK79ObZuiGe4OEB4elj940SMHTDuP1M6Cyiff2a2/FCjd8GiN+mnjoKfHuFIRoPIZgyxTfd0yUTACD0xr1EU1hF7TBvn5mQ/14ce+mdGhZ1qXo46Q4y/RaiaCINnO+BW8eXFSo9Dg4reXqkSwJQ7LyBf109COgMsdm0Fo45WK0gnyI3J9UQmlPv7yzPhGm3vNjEr2E+FiocJj0fcqIXhqQEjvZ2Oo47x+iZDGj7avOYfuwqorOCZ2Z2MSnsOfPXb7pHgUuel+eKavyB7ql9v4VBV/xd3bMWkap4VvX8d2fVzMdIBovtLzFVy3uBBAyeu1UuC6ckfgKjqJDnc31flO1naNwWfPMfMn3ratGFkE32Dkpd5flfR0OT0aXw3jrei8tBSiDVqwFNMD1nn6BXetkqEeGv6b2l8739K nuPLmyly 24Ck2Y4rDML015w/JdyM7b+Sj5pQvYtsnUTebRRdU96Xus9QATc3vkAf0RVjkySTncsKDMyDKOeLClyk6Q2G5OzahQEFVg7N6bSEMwrKJhiYaq3aSAxlsYPTvRf0dirkoCJ6rK1UNAIdkHxhGfw5wTe09Lnu8JUgLGLj36Dc2HeiVXWJhzrG8A3ShUzRMw4mthgXfOYRYOiTZyIYiImFn0p15RA89DBSAZvY3dvZN59jMtEqayP/1scUTf8hqs6xshZs5DxzDZe1zRjm2+BGkFVLnl+0PRUQdrSWeXT/KU4ilRR6FD77+k4nCqJXeG7SeKeFobZSvXzSH7UlPt+lmiw4AAsV0KAkfKGXVUMYOJrUsIwIvtbxLhBAWkYGhUBG0ucCnqVqUFqXnkRSGxkgiWi3kOblfHtTIaHCbOgOR9aoxswcLTtaqf+HyiA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000114, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Signed-off-by: Patrick Roy --- Documentation/virt/kvm/api.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index edc070c6e19b2..c8e21c523411c 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -6382,6 +6382,20 @@ a single guest_memfd file, but the bound ranges must not overlap). See KVM_SET_USER_MEMORY_REGION2 for additional details. +The following flags are defined: + +KVM_GMEM_NO_DIRECT_MAP + Ensure memory backing this guest_memfd inode is unmapped from the kernel's + address space. + +Errors: + + ========== =============================================================== + EOPNOTSUPP `KVM_GMEM_NO_DIRECT_MAP` was set in `flags`, but the host does + not support direct map manipulations. + ========== =============================================================== + + 4.143 KVM_PRE_FAULT_MEMORY ---------------------------