diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-02 12:47:38 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-07-04 20:49:38 +0200 |
commit | a47dd5f06714c844b33f3b5f517b6f3e81ce57b5 (patch) | |
tree | d63eac82760e1c3f71bc300ae0cbaade92c8c0c7 /lib/idr.c | |
parent | a399477e52c17e148746d3ce9a483f681c2aa9a0 (diff) |
x86/KVM/VMX: Add L1D flush algorithm
To mitigate the L1 Terminal Fault vulnerability it's required to flush L1D
on VMENTER to prevent rogue guests from snooping host memory.
CPUs will have a new control MSR via a microcode update to flush L1D with a
single MSR write, but in the absence of microcode a fallback to a software
based flush algorithm is required.
Add a software flush loop which is based on code from Intel.
[ tglx: Split out from combo patch ]
[ bpetkov: Polish the asm code ]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions