public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Dan Williams <djbw@kernel.org>
Cc: "Kernel Mailing List, Linux" <linux-kernel@vger.kernel.org>,
	kvm <kvm@vger.kernel.org>,  Steffen Eiden <seiden@linux.ibm.com>,
	Alex Williamson <alex.williamson@nvidia.com>,
	 yilun.xu@linux.intel.com
Subject: Re: [PATCH 1/3] VFIO: take reference to the KVM module
Date: Wed, 15 Apr 2026 17:31:29 -0700	[thread overview]
Message-ID: <aeAt4b-QvpcwtRwQ@google.com> (raw)
In-Reply-To: <69d977c0b367a_6c31a10021@djbw-dev.notmuch>

On Fri, Apr 10, 2026, Dan Williams wrote:
> Sean Christopherson wrote:
> > +Dan
> 
> +Yilun
> 
> [..]
> > I added Dan because the PCI TSM stuff is picking up "struct kvm *kvm" references,
> > and I want to head that off too, i.e. have it use the file approach instead of
> > whatever it plans on doing (can't tell from the code, because there are no users).
> 
> The PCI TSM *reference* for 'struct kvm *' will be inherited from
> vfio/iommufd. However, the TSM driver needs some context to manipulate

I assume/hope it just need to read "struct kvm" state though?

> the VM. For example, TDX effectively needs:
> 
>     to_kvm_tdx(kvm)->td.tdr_page
> 
> ...for operations like TDH.TDI.CREATE that sets up the context for the
> privately assigned device.
> 
> It could follow the example of arch/x86/kvm/mmu/page_track.c and do:
> 
>     kvm_tdx_tdi_create(struct file *kvm, ...)
> 
> ...and use file_to_kvm() for that limited helper that does not need to expose
> 'struct kvm_tdx' outside of arch/x86/.

Any idea how many assets do you anticipate needing?  E.g. is it just the TDR
page, or will TSM need a whole pile of information?

  reply	other threads:[~2026-04-16  0:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07 18:01 [PATCH 0/3] KVM, vfio: remove exported KVM symbols Paolo Bonzini
2026-04-07 18:01 ` [PATCH 1/3] VFIO: take reference to the KVM module Paolo Bonzini
2026-04-09 15:00   ` Steffen Eiden
2026-04-09 18:59   ` Sean Christopherson
2026-04-10  8:16     ` Paolo Bonzini
2026-04-10 14:13       ` Sean Christopherson
2026-04-10 14:34         ` Paolo Bonzini
2026-04-10 15:45           ` Sean Christopherson
2026-04-13 11:32             ` Paolo Bonzini
2026-04-13 21:21               ` Sean Christopherson
2026-04-10 22:20         ` Dan Williams
2026-04-16  0:31           ` Sean Christopherson [this message]
2026-04-16  7:30             ` Xu Yilun
2026-04-10 18:18       ` Jason Gunthorpe
2026-04-10 18:12   ` Jason Gunthorpe
2026-04-07 18:01 ` [PATCH 2/3] KVM, vfio: remove symbol_get(kvm_get_kvm_safe) from vfio Paolo Bonzini
2026-04-09 15:01   ` Steffen Eiden
2026-04-07 18:01 ` [PATCH 3/3] KVM, vfio: remove symbol_get(kvm_put_kvm) " Paolo Bonzini
2026-04-09 15:02   ` Steffen Eiden
2026-04-11 12:26   ` kernel test robot
2026-04-07 20:16 ` [PATCH 0/3] KVM, vfio: remove exported KVM symbols Alex Williamson
2026-04-09 15:06 ` Steffen Eiden

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=aeAt4b-QvpcwtRwQ@google.com \
    --to=seanjc@google.com \
    --cc=alex.williamson@nvidia.com \
    --cc=djbw@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seiden@linux.ibm.com \
    --cc=yilun.xu@linux.intel.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