Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Steven Price" <steven.price@arm.com>,
	kvm@vger.kernel.org, kvmarm@lists.linux.dev
Cc: "Oliver Upton" <oupton@kernel.org>, "Marc Zyngier" <maz@kernel.org>
Subject: Re: [PATCH v5 01/11] KVM: arm64: guest_memfd: Drop mmap requirement for memslots
Date: Mon, 30 Nov 2026 14:58:34 +0000	[thread overview]
Message-ID: <sashiko-outbox-241450@kernel.org> (raw)
In-Reply-To: <20261130142534.219108-2-steven.price@arm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: arm64: inappropriate Fixes: 32e200bd6e44 tag on feature
  prerequisite patch
--

commit ed4ff3be33a7e9e639a23bf7c8763bdcd1447922
Author: Steven Price <steven.price@arm.com>

> KVM: arm64: guest_memfd: Drop mmap requirement for memslots
>
> Arm64 rejects guest_memfd-backed memslots unless generic KVM marks
> them KVM_MEMSLOT_GMEM_ONLY. Without in-place conversion, that flag is
> set for mmap-capable guest_memfd files, reflecting the original arm64
> requirement for userspace-mappable backing.
>
> Realm VMs also need to bind private-only guest_memfd files, which do
> not support mmap. Their fault path obtains PFNs directly from
> guest_memfd through kvm_gmem_get_pfn(), without a userspace mapping.
> Remove the memslot restriction so these files can be used by Realms.
> Userspace remains responsible for supplying backing for shared IPAs.
>
> Suggested-by: Ackerley Tng <ackerleytng@google.com>
> Fixes: 32e200bd6e44 ("KVM: arm64: Enable support for guest_memfd backed memory")
> Signed-off-by: Steven Price <steven.price@arm.com>

[Severity: Low]
Should the Fixes: tag be dropped here?

32e200bd6e44 ("KVM: arm64: Enable support for guest_memfd backed memory")
intentionally required kvm_memslot_is_gmem_only() because arm64 had no VMs
supporting private-only memory.  Removing that check for Realm VMs is
feature enablement rather than a bug fix, and the Fixes: tag can cause this
patch to be backported to stable trees without Realm support or in-place
conversion, allowing normal VMs to bind non-mappable private-only
guest_memfd files and map private pages into shared stage-2 tables via
gmem_abort().

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130142534.219108-1-steven.price@arm.com?part=1

  reply	other threads:[~2026-11-30 14:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:25 [PATCH v5 00/11] KVM: arm64: CCA: Prepare Realm memory management Steven Price
2026-11-30 14:25 ` [PATCH v5 01/11] KVM: arm64: guest_memfd: Drop mmap requirement for memslots Steven Price
2026-11-30 14:58   ` sashiko-bot [this message]
2026-11-30 14:25 ` [PATCH v5 02/11] KVM: arm64: CCA: Introduce Realms Steven Price
2026-11-30 14:25 ` [PATCH v5 03/11] KVM: arm64: Pass range filter to stage2_unmap_range Steven Price
2026-11-30 14:25 ` [PATCH v5 04/11] KVM: arm64: Dispatch stage-2 destruction by VM flavor Steven Price
2026-11-30 14:25 ` [PATCH v5 05/11] KVM: arm64: CCA: Add basic infrastructure for creating a realm Steven Price
2026-11-30 14:25 ` [PATCH v5 06/11] KVM: arm64: CCA: Destroy RTTs Steven Price
2026-11-30 14:25 ` [PATCH v5 07/11] KVM: arm64: CCA: Add Realm RTT mapping and invalidation helpers Steven Price
2026-11-30 14:53   ` sashiko-bot
2026-11-30 14:25 ` [PATCH v5 08/11] KVM: arm64: CCA: Restrict Realm memslots to the lower IPA half Steven Price
2026-11-30 14:25 ` [PATCH v5 09/11] KVM: arm64: CCA: Advertise private memory support for Realms Steven Price
2026-11-30 14:25 ` [PATCH v5 10/11] KVM: arm64: CCA: Support runtime faulting of memory Steven Price
2026-11-30 14:58   ` sashiko-bot
2026-11-30 14:25 ` [PATCH v5 11/11] KVM: arm64: CCA: Add Realm stage-2 MMU operations 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=sashiko-outbox-241450@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=maz@kernel.org \
    --cc=oupton@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=steven.price@arm.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