All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Wei-Lin Chang <weilin.chang@arm.com>
Cc: Colton Lewis <coltonlewis@google.com>,
	Oliver Upton <oupton@kernel.org>, Joey Gouly <joey.gouly@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>,
	Fuad Tabba <fuad.tabba@linux.dev>,
	Steffen Eiden <seiden@linux.ibm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>, Dan Carpenter <dan@pereq.eu>,
	kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] KVM: arm64: nv: Discard undersized TTL hints in compute_tlb_inval_range()
Date: Wed, 25 Nov 2026 16:09:23 +0000	[thread overview]
Message-ID: <86zeuwyjt8.wl-maz@kernel.org> (raw)
In-Reply-To: <n4ii5ih6szqxjklqxbqzun3bjd4saku3aqqvhq4wf4kq3dipoo@3r2j3exwocw5>

On Wed, 25 Nov 2026 09:56:18 +0000,
Wei-Lin Chang <weilin.chang@arm.com> wrote:
> 
> On Tue, Nov 24, 2026 at 10:16:16PM +0000, Colton Lewis wrote:
> > On Tue, 24 Nov 2026 20:42:19 +0000, Marc Zyngier <maz@kernel.org> wrote:
> > > On Tue, 24 Nov 2026 20:22:15 +0000,
> > > Colton Lewis <coltonlewis@google.com> wrote:
> > > > [1] only catches TTL hints smaller than host PAGE_SIZE. It does not
> > > > catch a hint that is >= PAGE_SIZE but smaller than the mapped block,
> > > > such as a 4kB L3 hint on a 2MB block on a 4kB host.
> > >
> > > Why do you think this makes *any* difference? The hint passed by the
> > > guest is utter bollocks, and the best thing would be to not invalidate
> > > anything. It's just too invasive to do elegantly.
> > 
> > Architecturally [1] is fine for the TLB, and before guest_s2_mappings
> > landed in v7.4-rc1 clearing the block was harmless. The problem with [1]
> > is a host memory leak in kvm_pgtable_stage2_unmap_tracked():

Then fix the tracking.

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2026-11-25 16:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 23:26 [PATCH v2 0/2] KVM: arm64: nv: Fix stale and duplicate guest S2 tracking entries Colton Lewis
2026-11-23 23:26 ` [PATCH v2 1/2] KVM: arm64: nv: Discard undersized TTL hints in compute_tlb_inval_range() Colton Lewis
2026-11-24 13:10   ` Marc Zyngier
2026-11-24 20:22     ` Colton Lewis
2026-11-24 20:42       ` Marc Zyngier
2026-11-24 22:16         ` Colton Lewis
2026-11-25  9:56           ` Wei-Lin Chang
2026-11-25 16:09             ` Marc Zyngier [this message]
2026-12-02  0:10             ` Colton Lewis
2026-11-23 23:26 ` [PATCH v2 2/2] KVM: arm64: nv: Avoid duplicate guest stage-2 mapping entries Colton Lewis
2026-11-23 23:32   ` sashiko-bot

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=86zeuwyjt8.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=coltonlewis@google.com \
    --cc=dan@pereq.eu \
    --cc=fuad.tabba@linux.dev \
    --cc=joey.gouly@arm.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=oupton@kernel.org \
    --cc=seiden@linux.ibm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=weilin.chang@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.