Linux Confidential Computing Development
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-coco@lists.linux.dev" <linux-coco@lists.linux.dev>,
	"yilun.xu@linux.intel.com" <yilun.xu@linux.intel.com>,
	"Li, Xiaoyao" <xiaoyao.li@intel.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	"Reshetova, Elena" <elena.reshetova@intel.com>,
	"kas@kernel.org" <kas@kernel.org>,
	"seanjc@google.com" <seanjc@google.com>,
	"Xu, Yilun" <yilun.xu@intel.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"Tian, Kevin" <kevin.tian@intel.com>,
	"aneesh.kumar@kernel.org" <aneesh.kumar@kernel.org>,
	"Fang, Peter" <peter.fang@intel.com>,
	"Duan, Zhenzhong" <zhenzhong.duan@intel.com>,
	"Gao, Chao" <chao.gao@intel.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"aik@amd.com" <aik@amd.com>, "x86@kernel.org" <x86@kernel.org>
Subject: Re: [RFC] CoCo: Use MMIO-based protocols (instead of vmcalls) for guest-host talk
Date: Fri, 4 Dec 2026 14:45:10 -0400	[thread overview]
Message-ID: <20261204184510.GG1691862@nvidia.com> (raw)
In-Reply-To: <ac8a2fc285baeff816d2bd72aa4eeb84e6103a54.camel@intel.com>

On Fri, Dec 04, 2026 at 06:10:37PM +0000, Edgecombe, Rick P wrote:

> We expect these will need to be passed to userspace too? So at least on the SNP
> side, these will either need to go out with one big KVM exit type, or morphed
> into 7-8 individual exits. Since the specific TDISP operation is embedded in the
> data in the shared memory, it probably ends up looking like one big
> exit.

Yeah, all the GHCI mechanisms related to tdisp should go out to
userspace, the VMM has to relay them back into the kernel on a
different uAPI that is tied to the vdevice.

KVM doesn't have enough information to forward these on its own and we
don't want to teach kvm about the vfio devices, or how the VMM has
layed out the vPCI bus and so on.

I feel like everyone has already set their guest side specifications,
so it is unlikely at this point we can just say we don't support those
in a Linux hypervisor. So a new method is just going to be added along
side the old ones without making things in aggregate simpler.

The time for standards was ages ago when all could have got together
and made a Guest/VMM message channel with some standard messages on it
for every implementation. That would have been tremendously helpful to
the industry and greatly sped up upstreaming all of this.

Oh well.

Jason

      reply	other threads:[~2026-12-04 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:32 [RFC] CoCo: Use MMIO-based protocols (instead of vmcalls) for guest-host talk Xu Yilun
2026-12-04 18:10 ` Edgecombe, Rick P
2026-12-04 18:45   ` Jason Gunthorpe [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=20261204184510.GG1691862@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=aik@amd.com \
    --cc=aneesh.kumar@kernel.org \
    --cc=chao.gao@intel.com \
    --cc=elena.reshetova@intel.com \
    --cc=jiewen.yao@intel.com \
    --cc=kas@kernel.org \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-pci@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.fang@intel.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=seanjc@google.com \
    --cc=x86@kernel.org \
    --cc=xiaoyao.li@intel.com \
    --cc=yilun.xu@intel.com \
    --cc=yilun.xu@linux.intel.com \
    --cc=zhenzhong.duan@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