OSDN Git Service

KVM: VMX: Disable loading of TSX_CTRL MSR the more conventional way
authorSean Christopherson <seanjc@google.com>
Tue, 4 May 2021 17:17:30 +0000 (10:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 May 2021 10:06:18 +0000 (06:06 -0400)
commit5e17c624010a82bbcca9b955155781927eb6532a
tree79f93fe027e29bf8706a0a8193c216f6ef1de15a
parent8ea8b8d6f869425e21f34e60bdbe7e47e6c9d6b9
KVM: VMX: Disable loading of TSX_CTRL MSR the more conventional way

Tag TSX_CTRL as not needing to be loaded when RTM isn't supported in the
host.  Crushing the write mask to '0' has the same effect, but requires
more mental gymnastics to understand.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210504171734.1434054-12-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c