[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <07ef65c4-708e-1bcf-9a7e-f804acefcc7c@linux.intel.com>
Date: Tue, 19 Apr 2022 07:00:03 -0700
From: Sathyanarayanan Kuppuswamy
<sathyanarayanan.kuppuswamy@...ux.intel.com>
To: Kai Huang <kai.huang@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
Hans de Goede <hdegoede@...hat.com>,
Mark Gross <mgross@...ux.intel.com>
Cc: "H . Peter Anvin" <hpa@...or.com>,
"Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
Tony Luck <tony.luck@...el.com>,
Andi Kleen <ak@...ux.intel.com>, linux-kernel@...r.kernel.org,
platform-driver-x86@...r.kernel.org
Subject: Re: [PATCH v3 4/4] platform/x86: intel_tdx_attest: Add TDX Guest
attestation interface driver
On 4/19/22 1:16 AM, Kai Huang wrote:
> In fact after slightly thinking more, I think you can split TDREPORT TDCALL
> support with GetQuote/SetupEventNotifyInterrupt support. The reason is as I
> said, GetQuote isn't mandatory to support attestation. TD attestation agent can
> use i.e. vsock, tcp/ip, to communicate to QE directly. Whether kernel needs to
> support GetQuote is actually arguable.
IMO, we should not use a usage model to categorize "GetQuote" support
as a mandatory or non-mandatory requirement.
For customers who use VSOCK, they can get away without GetQuote
TDVMCALL support. But for customers who do not want to use
VSOCK model, this is a required support. AFAIK, our current customer
requirement is to use TDVMCALL approach for attestation support.
If your suggestion is to split GetQuote support as separate
patch to make it easier for review, I am fine with such
suggestion.
Maintainers, any opinion? Would you prefer to split the
driver into two patches?
>
> So IMHO you can split this attestation driver into two parts:
>
> 1) A "basic" driver which supports reporting TDREPORT to userspace
> 2) Additional support of GetQuote/SetupEventNotifyInterrupt.
>
> The 1) can even be in a single patch (I guess it won't be complicated). It is
> easy to review (and i.e. can be merged separately), and with it, you will
> immediately have one way to support attestation.
>
> 2) can be reviewed separately, perhaps with one additional Kconfig option (i.e.
> CONFIG_INTEL_TDX_ATTESTATION_GET_QUOTE). I think this part has most of the
GetQuote IOCTL support is a very simple feature support, so, IMO, we
don't need to complicate it with additional config.
> complexity things in terms of review.
--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
Powered by blists - more mailing lists