i386/kvm: Blacklist TSX on known broken hosts
commit40e80ee4113ad957b633cbdddb7423952bb76974
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 9 Mar 2017 18:12:11 +0000 (9 15:12 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 10 Mar 2017 18:01:08 +0000 (10 15:01 -0300)
tree54df8544831856ced94977110910f38849288a0d
parent20271d484069f154fb262507e63adc3a37e885d2
i386/kvm: Blacklist TSX on known broken hosts

Some Intel CPUs are known to have a broken TSX implementation. A
microcode update from Intel disabled TSX on those CPUs, but
GET_SUPPORTED_CPUID might be reporting it as supported if the
hosts were not updated yet.

Manually fixup the GET_SUPPORTED_CPUID data to ensure we will
never enable TSX when running on those hosts.

Reference:
* glibc commit 2702856bf45c82cf8e69f2064f5aa15c0ceb6359:
  https://sourceware.org/git/?p=glibc.git;a=commit;h=2702856bf45c82cf8e69f2064f5aa15c0ceb6359

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170309181212.18864-3-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/kvm.c