Re: [PATCH v13 03/11] KVM: VMX: Set guest CET MSRs per KVM and host configuration

2020-07-03 Thread Yang Weijiang
On Thu, Jul 02, 2020 at 11:13:35PM +0800, Xiaoyao Li wrote: > On 7/1/2020 4:04 PM, Yang Weijiang wrote: > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index c5835f9cb9ad..6390b62c12ed 100644 > > --- a/arch/x86/kvm/x86.c > > +++ b/arch/x86/kvm/x86.c > > @@ -186,6 +186,9 @@ static

Re: [PATCH v13 03/11] KVM: VMX: Set guest CET MSRs per KVM and host configuration

2020-07-02 Thread Xiaoyao Li
On 7/1/2020 4:04 PM, Yang Weijiang wrote: CET MSRs pass through guest directly to enhance performance. CET runtime control settings are stored in MSR_IA32_{U,S}_CET, Shadow Stack Pointer(SSP) are stored in MSR_IA32_PL{0,1,2,3}_SSP, SSP table base address is stored in MSR_IA32_INT_SSP_TAB, these

[PATCH v13 03/11] KVM: VMX: Set guest CET MSRs per KVM and host configuration

2020-07-01 Thread Yang Weijiang
CET MSRs pass through guest directly to enhance performance. CET runtime control settings are stored in MSR_IA32_{U,S}_CET, Shadow Stack Pointer(SSP) are stored in MSR_IA32_PL{0,1,2,3}_SSP, SSP table base address is stored in MSR_IA32_INT_SSP_TAB, these MSRs are defined in kernel and re-used here.