]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: implement MSR_IA32_TSX_CTRL effect on CPUID
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Nov 2019 17:23:00 +0000 (12:23 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Nov 2019 08:59:31 +0000 (09:59 +0100)
commit89296bcbac611a7a35fa7f6e5222037e3bb05daa
treefd52ae76a55a249dcc0a1c7b5b2afa2cb173d93d
parent9bfc4c819e5ceb40beb934f75b617169e2c5fdcb
KVM: x86: implement MSR_IA32_TSX_CTRL effect on CPUID

Because KVM always emulates CPUID, the CPUID clear bit
(bit 1) of MSR_IA32_TSX_CTRL must be emulated "manually"
by the hypervisor when performing said emulation.

Right now neither kvm-intel.ko nor kvm-amd.ko implement
MSR_IA32_TSX_CTRL but this will change in the next patch.

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