From: Steven Price <steven.price@arm.com>
To: Fuad Tabba <tabba@google.com>
Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Marc Zyngier <maz@kernel.org>, Will Deacon <will@kernel.org>,
James Morse <james.morse@arm.com>,
Oliver Upton <oliver.upton@linux.dev>,
Zenghui Yu <yuzenghui@huawei.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Joey Gouly <joey.gouly@arm.com>,
Alexandru Elisei <alexandru.elisei@arm.com>,
Christoffer Dall <christoffer.dall@arm.com>,
linux-coco@lists.linux.dev,
Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>,
Gavin Shan <gshan@redhat.com>,
Shanker Donthineni <sdonthineni@nvidia.com>,
Alper Gun <alpergun@google.com>,
"Aneesh Kumar K . V" <aneesh.kumar@kernel.org>,
Emi Kisanuki <fj0570is@fujitsu.com>,
Vishal Annapurve <vannapurve@google.com>,
WeiLin.Chang@arm.com, Lorenzo Pieralisi <lpieralisi@kernel.org>,
Kohei Enju <enju.kohei@fujitsu.com>
Subject: Re: [PATCH v4 08/11] KVM: Allow architectures to reject memslot changes before invalidation
Date: Mon, 30 Nov 2026 10:15:33 +0000 [thread overview]
Message-ID: <a0a93b99-6703-4397-9c4d-286299bf3a91@arm.com> (raw)
In-Reply-To: <CA+EHjTz54b-0pNe6qQ_=BCiRLmPEVpcjN4SNSfy3xPK_M6JsMw@mail.gmail.com>
On 30/11/2026 09:05, Fuad Tabba wrote:
> Hi Suzuki,
>
> On Mon, 23 Nov 2026 10:42:28 +0000, Steven Price <steven.price@arm.com> wrote:
>> From: Suzuki K Poulose <suzuki.poulose@arm.com>
>>
>> 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
next prev parent reply other threads:[~2026-11-30 10:16 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 10:42 [PATCH v4 00/11] KVM: arm64: CCA: Prepare Realm memory management Steven Price
2026-11-23 10:42 ` [PATCH v4 01/11] KVM: arm64: guest_memfd: Check mmap support when preparing memslot Steven Price
2026-11-23 10:42 ` [PATCH v4 02/11] KVM: arm64: CCA: Introduce Realms Steven Price
2026-11-30 8:01 ` Fuad Tabba
2026-11-23 10:42 ` [PATCH v4 03/11] KVM: arm64: Pass range filter to stage2_unmap_range Steven Price
2026-11-23 10:42 ` [PATCH v4 04/11] KVM: arm64: Dispatch stage-2 destruction by VM flavor Steven Price
2026-11-23 11:23 ` Suzuki K Poulose
2026-11-25 11:32 ` Steven Price
2026-11-30 8:30 ` Fuad Tabba
2026-11-23 10:42 ` [PATCH v4 05/11] KVM: arm64: CCA: Add basic infrastructure for creating a realm Steven Price
2026-11-23 11:35 ` Suzuki K Poulose
2026-11-25 11:51 ` Steven Price
2026-11-23 10:42 ` [PATCH v4 06/11] KVM: arm64: CCA: Destroy RTTs Steven Price
2026-11-23 11:57 ` Suzuki K Poulose
2026-11-24 0:01 ` Suzuki K Poulose
2026-11-25 15:36 ` Steven Price
2026-11-23 10:42 ` [PATCH v4 07/11] KVM: arm64: CCA: Add Realm RTT mapping and invalidation helpers Steven Price
2026-11-23 13:32 ` Suzuki K Poulose
2026-11-25 16:42 ` Steven Price
2026-11-24 0:20 ` Suzuki K Poulose
2026-11-25 9:51 ` Suzuki K Poulose
2026-11-25 16:47 ` Steven Price
2026-11-23 10:42 ` [PATCH v4 08/11] KVM: Allow architectures to reject memslot changes before invalidation Steven Price
2026-11-30 9:05 ` Fuad Tabba
2026-11-30 10:15 ` Steven Price [this message]
2026-11-23 10:42 ` [PATCH v4 09/11] KVM: arm64: CCA: Prevent memslot modifications after Realm creation Steven Price
2026-11-25 0:09 ` Ackerley Tng
2026-11-25 14:58 ` Suzuki K Poulose
2026-11-26 16:47 ` Steven Price
2026-11-23 10:42 ` [PATCH v4 10/11] KVM: arm64: CCA: Support runtime faulting of memory Steven Price
2026-11-26 9:44 ` Suzuki K Poulose
2026-11-26 17:02 ` Steven Price
2026-11-23 10:42 ` [PATCH v4 11/11] KVM: arm64: CCA: Add Realm stage-2 MMU operations Steven Price
2026-11-24 9:47 ` [PATCH v4 00/11] KVM: arm64: CCA: Prepare Realm memory management Kohei Enju
2026-11-25 11:54 ` Steven Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0a93b99-6703-4397-9c4d-286299bf3a91@arm.com \
--to=steven.price@arm.com \
--cc=WeiLin.Chang@arm.com \
--cc=alexandru.elisei@arm.com \
--cc=alpergun@google.com \
--cc=aneesh.kumar@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=christoffer.dall@arm.com \
--cc=enju.kohei@fujitsu.com \
--cc=fj0570is@fujitsu.com \
--cc=gankulkarni@os.amperecomputing.com \
--cc=gshan@redhat.com \
--cc=james.morse@arm.com \
--cc=joey.gouly@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=maz@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=sdonthineni@nvidia.com \
--cc=suzuki.poulose@arm.com \
--cc=tabba@google.com \
--cc=vannapurve@google.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox