Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: sashiko-reviews@lists.linux.dev
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: x86/mmu: WARN and flush TLBs if TDP MMU replaces present SPTE with MMIO SPTE
Date: Thu, 22 Oct 2026 06:34:12 -0700	[thread overview]
Message-ID: <atoQ1Az63PUL8L0l@google.com> (raw)
In-Reply-To: <sashiko-outbox-180886@kernel.org>

On Thu, Oct 22, 2026, sashiko-bot@kernel.org wrote:
> When a shadow-present spte mapping a valid memslot gfn is overwritten with a
> non-shadow-present mmio spte due to gfn truncation in the tdp iterator, does
> flushing iter->gfn via kvm_flush_remote_tlbs_gfn() flush the wrong address
> when range-based tlb invalidation is used?

...

> Should this path call kvm_flush_remote_tlbs(vcpu->kvm) (or mask iter->gfn to
> the root's address space) when !is_shadow_present_pte(new_spte) triggers?

Eh, I don't think we should bother.  The right fix is prevent the truncation in
the first place.  If kvm_flush_remote_tlbs_gfn() weren't limited to KVM-on-HyperV
I would care, especially since this requires userspace to effectively misconfigure
the VM.  I.e. someone would have to go pretty far out of their way to run afoul of
this exact scenario.

      reply	other threads:[~2026-10-22 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  2:22 [PATCH] KVM: x86/mmu: WARN and flush TLBs if TDP MMU replaces present SPTE with MMIO SPTE Sean Christopherson
2026-10-22  2:51 ` sashiko-bot
2026-10-22 13:34   ` Sean Christopherson [this message]

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=atoQ1Az63PUL8L0l@google.com \
    --to=seanjc@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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