lkml.org 
[lkml]   [2023]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 15/21] KVM:x86: Report CET MSRs as to-be-saved if CET is supported
    Date
    Report all CET MSRs, including the synthetic GUEST_SSP MSR, as
    to-be-saved, e.g. for migration, if CET is supported by KVM.

    Co-developed-by: Sean Christopherson <sean.j.christopherson@intel.com>
    Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
    Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
    ---
    arch/x86/kvm/x86.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
    index 7cd7f6755acd..95dba3c3df5f 100644
    --- a/arch/x86/kvm/x86.c
    +++ b/arch/x86/kvm/x86.c
    @@ -1470,6 +1470,7 @@ static const u32 msrs_to_save_base[] = {

    MSR_IA32_XFD, MSR_IA32_XFD_ERR,
    MSR_IA32_XSS,
    + MSR_IA32_U_CET, MSR_IA32_PL3_SSP, MSR_KVM_GUEST_SSP,
    };

    static const u32 msrs_to_save_pmu[] = {
    --
    2.27.0
    \
     
     \ /
      Last update: 2023-04-21 18:52    [W:5.737 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site