OSDN Git Service

kvm: x86: Pass through AMD_STIBP_ALWAYS_ON in GET_SUPPORTED_CPUID
authorJim Mattson <jmattson@google.com>
Thu, 27 Jun 2019 18:36:51 +0000 (11:36 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 17:01:56 +0000 (19:01 +0200)
commitc550505b57832936aebb5eb376375bc258f8a807
tree1008cc3e7fb7fc69e2d6e2cb2bdec31fafaff5e7
parentb119019847fbcac36ed1384f166c91f177d070e7
kvm: x86: Pass through AMD_STIBP_ALWAYS_ON in GET_SUPPORTED_CPUID

This bit is purely advisory. Passing it through to the guest indicates
that the virtual processor, like the physical processor, prefers that
STIBP is only set once during boot and not changed.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c