From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A07A1606A329 for ; Mon, 30 Nov 2026 10:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=d26lqVxN; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tB8LDjWU DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=L4XN97MWScRHUJmEQ1JgIluTlif1W4b1EvwWjPbbOTM=; b=d26lqVxNeexr/T e+e/q8xbzdORT2jjkc1LlpLf+Iguwuas5t40R6/qSOX21jPy7PyN3/Plz+i02qjWxwHvkcHcY2OT6 VMJPyGNX+k6uoUGxmNidH1kb2a8SLf4zFg/u6+FXxtIGDXFCIW4LvdEu9WDHnEzqIHzAd9lz805p9 aLlCw9Rc+g++98s40jz6W4/bcu8f6ikFwlraiXOUQGhApsSO4tEYqdh7zGRbBXZizeE31e7DLN9Rl Jcs4M6z2R5zCEyTnIczfEmpotfaAfQZA7ukDDSyVNNQ9JSloYekcMF9vIHgfUASXX3sMGQ3K6PP11 vJqc90WK4BDIjN+/kLzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXyQK-000000046Pv-3YJ3; Mon, 30 Nov 2026 10:15:52 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXyQD-000000046P7-1yeb for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 10:15:52 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA4C41595; Mon, 30 Nov 2026 02:15:39 -0800 (PST) Received: from [10.57.63.145] (unknown [10.57.63.145]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAE853F86F; Mon, 30 Nov 2026 02:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796033742; bh=Sr9YulUeTNerVEB7XaNfy1UUPPzICXKS+08QagY6Zh0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tB8LDjWUwZtFAF9VKiN9M5JAso5fUWsE4mWRS1B36hAawHHobZNUIcG95Xtyv9csJ er/FcW1lZMU8k10K1XhCNLCa5SpAQuXNIQMimD0+YuRVnC4unppVmhpI2KdsYL1R3u GhgqfHzWkbcV7WaNHqA3BTZ3Edj7qRXDuWKSZobA= Message-ID: Date: Mon, 30 Nov 2026 10:15:33 +0000 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 08/11] KVM: Allow architectures to reject memslot changes before invalidation To: Fuad Tabba Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Suzuki K Poulose , Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" , Emi Kisanuki , Vishal Annapurve , WeiLin.Chang@arm.com, Lorenzo Pieralisi , Kohei Enju References: <20261123104233.95710-1-steven.price@arm.com> <20261123104233.95710-9-steven.price@arm.com> From: Steven Price Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_021545_550258_19680227 X-CRM114-Status: GOOD ( 10.68 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 30/11/2026 09:05, Fuad Tabba wrote: > Hi Suzuki, > > On Mon, 23 Nov 2026 10:42:28 +0000, Steven Price wrote: >> From: Suzuki K Poulose >> >> The next patch needs to reject changes to a realm guest_memfd memslot >> before invalidation. KVM currently invalidates the slot and calls > [...] >> Move arm64's existing pVM checks into the new hook as part of early >> validation. pVM invalidation uses no_stage2_unmap_range(), so the realm >> case motivates this hook. Keep resource preparation after invalidation, > > With the Realm memslot restrictions in patch 9 being dropped in the > next version, is this hook still needed? pVM invalidation doesn't > touch stage-2, so the pVM checks could stay in > kvm_arch_prepare_memory_region(). Indeed with the memslot restrictions gone this hook isn't needed. Thanks, Steve