]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Refactor handling of XSAVES CPUID adjustment
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:40 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:22 +0000 (17:58 +0100)
commit9d7f83866cc12dca4fc77abe8454cfbd1e2365b5
tree3a5709f1e4ea1aa3342e4735529ae131784a3a21
parent2211a33d2de2247da3554b8643f2b23044cbccaf
KVM: x86: Refactor handling of XSAVES CPUID adjustment

Invert the handling of XSAVES, i.e. set it based on boot_cpu_has() by
default, in preparation for adding KVM cpu caps, which will generate the
mask at load time before ->xsaves_supported() is ready.

No functional change intended.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c