public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "pbonzini@redhat.com" <pbonzini@redhat.com>,
	"seanjc@google.com" <seanjc@google.com>
Cc: "Li, Xiaoyao" <xiaoyao.li@intel.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"Shutemov, Kirill" <kirill.shutemov@intel.com>,
	"Wu, Binbin" <binbin.wu@intel.com>
Subject: Re: Drop "KVM: TDX: Handle TDG.VP.VMCALL<GetTdVmCallInfo> hypercall"
Date: Fri, 18 Apr 2025 22:16:32 +0000	[thread overview]
Message-ID: <86730ddd2e0cd8d3a901ffbb8117d897211a9cd4.camel@intel.com> (raw)
In-Reply-To: <5e7e8cb7-27b2-416d-9262-e585034327be@redhat.com>

+Kirill

Context:
https://lore.kernel.org/kvm/da3e2f6bdc67b1b02d99a6b57ffc9df48a0f4743.camel@intel.com/

On Fri, 2025-04-18 at 15:24 +0200, Paolo Bonzini wrote:
> It does, but I think we should just implement the remaining TDVMCALLs 
> before 6.16 is out, which is in a while.  All that is left is really the 
> userspace TDVMCALLs GetQuote, ReportFatalError and 
> SetupEventNotifyInterrupt.
> 
> For Instruction.PCONFIG and for VE.RequestMMIO a dummy implementation is 
> valid and returning success is probably even better than invalid-operand.

You might be looking at the 1.0 spec. The 1.5 spec has the same GetTdVmCallInfo
success criteria of supporting all calls, but adds a couple more. Here are the
missing calls listed in the 1.5 spec.

TDG.VP.VMCALL<GETQUOTE> - Have patches, but missing
TDG.VP.VMCALL<SETUPEVENTNOTIFYINTERRUPT> - Have patches, but missing
TDG.VP.VMCALL<INSTRUCTION.WBINVD> - Missing
TDG.VP.VMCALL<INSTRUCTION.PCONFIG> - Missing
TDG.VP.VMCALL<Service.Query> - Missing
TDG.VP.VMCALL<Service.MigTD> - Missing

The GHCI also has the following disclaimer:
"This document is a work in progress and is subject to change based on customer
feedback and internal analysis."

So I'm not sure if following the GetTdVmCallInfo spec to the letter is worth the
cost of too much dead code, compared to asking them to update it. How were you
looking at it? In any case we can prep some minimal implementations and see how
it looks.

Xiaoyao was tossing around the idea of adding a dedicated "not implemented"
return code too. It could make it simpler to evolve the GHCI spec vs the all or
nothing approach. To me, the main finding here is that we need to have more
clarity on how the GHCI will evolve going forward.

  reply	other threads:[~2025-04-18 22:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  3:12 Drop "KVM: TDX: Handle TDG.VP.VMCALL<GetTdVmCallInfo> hypercall" Edgecombe, Rick P
2025-04-18 13:24 ` Paolo Bonzini
2025-04-18 22:16   ` Edgecombe, Rick P [this message]
2025-04-23 14:09     ` Paolo Bonzini
2025-04-24  6:51       ` Shutemov, Kirill
2025-04-24 12:19         ` Paolo Bonzini
2025-04-24  9:18       ` Binbin Wu

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=86730ddd2e0cd8d3a901ffbb8117d897211a9cd4.camel@intel.com \
    --to=rick.p.edgecombe@intel.com \
    --cc=binbin.wu@intel.com \
    --cc=kirill.shutemov@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    --cc=xiaoyao.li@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