From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796033744; b=w8/7/yhqLEub0yD5zERogyV4yDxNIff0x8NL6l6CXeAlQzAe54QhuyIfkQpu5Psot++m E3jZf8PX3Iw2YZPrKbg98YjzlNnr1vaC6UHcH5+ica+2GsQa3/EXNs+u3sCF9g9AzVSll jYCp3yh6jzsT0HvDf6eUriU81Hq+O0ZDcmkIZ9QN+Wo2n1GJgoEHui45ldtJhqMMzpG9f Au2+cE1M42GjWyKvTiF/lv/BLXkgkUM8CDd8z2u6ua2J8OX1qKBhWz/pcNktlfu5D/qGZ IXMe7uXanin9xf2GtgX+9E1Sd3HODy5JSV3I/sv+sf5a2Su5MB1+hpDi9nsYRWAKneQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796033744; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=L4XN97MWScRHUJmEQ1JgIluTlif1W4b1EvwWjPbbOTM=; b=NoT6VhVB+Xv1lwmjaiuark5qY3wuelKMx4KOSMcYofuy0MyjzL4eO/IMc1nmASRAPIgc dN9lnW6hH1r7nt4cY5wrvV3R3DCFIn3/HR0JqojDoI9mgWJ4kOwJbjTgVj7+oXohZUJju MR0B4/Urq/tOM+t/B9YEPWwOONIdq6Mj9TYzVAt48umuMCx6SJCz9dyEOiGLwJ6iQSLyU u4JySt1bR8rCoKSKZFb9BAnhYvYuT3ex/RB7T8ShQKqShDrWJlxyAk1lM9JHmej6mfHt8 J/bbe4rJQdVGhYPIJOKbR9z/OOKfsbrC3Z5AoylfpeHysbVqztphBlxGatN8FT29UQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tB8LDjWU; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EA8C606A31C; Mon, 30 Nov 2026 10:15:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9EA8C606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tB8LDjWU 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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