]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Nov 2019 17:58:26 +0000 (18:58 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:28 +0000 (14:22 -0300)
commite6add6a73bbcd4bb401831e7400c28b6f49efb77
treee7d73a448e302f559b0abcda80165578f991aafa
parenta0995c50711a9555f51c2a34c2d800bec745a3da
KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES

BugLink: https://bugs.launchpad.net/bugs/1857158
commit cbbaa2727aa3ae9e0a844803da7cef7fd3b94f2b upstream.

KVM does not implement MSR_IA32_TSX_CTRL, so it must not be presented
to the guests.  It is also confusing to have !ARCH_CAP_TSX_CTRL_MSR &&
!RTM && ARCH_CAP_TAA_NO: lack of MSR_IA32_TSX_CTRL suggests TSX was not
hidden (it actually was), yet the value says that TSX is not vulnerable
to microarchitectural data sampling.  Fix both.

Cc: stable@vger.kernel.org
Tested-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/kvm/x86.c