lkml.org 
[lkml]   [2021]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v14 10/13] KVM: x86: Enable CET virtualization for VMX and advertise CET to userspace
From
Date
On 06/11/20 02:16, Yang Weijiang wrote:
>
> +
> + if (((cr4 ^ old_cr4) & X86_CR4_CET) && kvm_cet_supported()) {
> + vmcs_writel(GUEST_SSP, 0);
> + vmcs_writel(GUEST_S_CET, 0);
> + vmcs_writel(GUEST_INTR_SSP_TABLE, 0);
> + }
> +

Is this behavior documented for bare metal? I suspect it is at least
not true for S_CET and INTR_SSP_TABLE, because SMM entry does not save
those to SMRAM (and clears CR4.CET).

Also, you need to save/restore GUEST_SSP to SMRAM.

Paolo

\
 
 \ /
  Last update: 2021-01-28 18:56    [W:0.214 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site