lkml.org 
[lkml]   [2022]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6] x86/hyperv: Add hv_isolation_type_tdx() to detect TDX guests
On Mon, Nov 21, 2022 at 01:01:45PM -0800, Dave Hansen wrote:
> On 11/21/22 11:51, Dexuan Cui wrote:
> > + switch (hv_get_isolation_type()) {
> > + case HV_ISOLATION_TYPE_VBS:
> > + case HV_ISOLATION_TYPE_SNP:
> > cc_set_vendor(CC_VENDOR_HYPERV);
> > + break;
> > +
> > + case HV_ISOLATION_TYPE_TDX:
> > + static_branch_enable(&isolation_type_tdx);
> > + break;
>
> This makes zero logical sense to me.
>
> Running on Hyper-V, a HV_ISOLATION_TYPE_SNP is CC_VENDOR_HYPERV, but a
> HV_ISOLATION_TYPE_TDX guest is *NOT* CC_VENDOR_HYPERV?

https://lore.kernel.org/r/Y3uTK3rBV6eXSJnC@zn.tnic

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette

\
 
 \ /
  Last update: 2022-11-21 22:49    [W:0.128 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site