Although supported_xss was added long time ago, yet it doesn't get ready for XSS dependent new features usage, e.g., when guest update XSS MSRs, it's necessary to update guest CPUID to reflect the correct info. So post this patchset to get things ready, or at least as a hint to maintainers that there're still a few things left before support feature bits in XSS. Also added a few helpers to facilitate new features development. This part of code originates from CET KVM patchset, with more and more new features dependent on this part, post this patchset ahead of them. Sean Christopherson (2): KVM: x86: Add helpers for {set|clear} bits in supported_xss KVM: x86: Load guest fpu state when accessing MSRs managed by XSAVES Yang Weijiang (1): KVM: x86: Refresh CPUID when guest modifies MSR_IA32_XSS arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/cpuid.c | 21 ++++++++++++-- arch/x86/kvm/vmx/vmx.c | 22 +++++++++++++++ arch/x86/kvm/x86.c | 50 +++++++++++++++++++++++++++++++-- 4 files changed, 88 insertions(+), 6 deletions(-) -- 2.17.2