x86/vtx: Corrections to BDF93 errata workaround
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2019 15:18:40 +0000 (16:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Nov 2019 15:18:40 +0000 (16:18 +0100)
commita08fdb832f24880a887f881e71cb27fa8d8c6a81
tree8ed402a866f3a0849c526fa92a5840c37f2a6ab1
parent0b1e97d77f3003ad1775eb0e4fae4350941f962a
x86/vtx: Corrections to BDF93 errata workaround

At the time of fixing c/s 20f1976b44, no obvious errata had been published,
and BDF14 looked like the most obvious candidate.  Subsequently, BDF93 has
been published and it is obviously this.

The erratum states that LER_TO_LIP is the only affected MSR.  The provisional
fix in Xen adjusted LER_FROM_LIP, but this is not correct.  The FROM MSRs are
intended to have TSX metadata, and for steppings with TSX enabled, it will
corrupt the value the guest sees, while for parts with TSX disabled, it is
redundant with FIXUP_TSX.  Drop the LER_FROM_LIP adjustment.

Replace BDF14 references with BDF93, drop the redundant 'bdw_erratum_' prefix,
and use an Intel vendor check, as other vendors implement VT-x.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: 1a3b393129c1dcfec418f9b0ee92d126c2ae8141
master date: 2019-10-29 19:27:40 +0000
xen/arch/x86/hvm/vmx/vmx.c