diff options
| author | Konrad Rzeszutek Wilk <[email protected]> | 2018-04-26 02:04:19 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2018-05-03 11:55:47 +0000 |
| commit | 5cf687548705412da47c9cec342fd952d71ed3d5 (patch) | |
| tree | 5b868ec35064f655e390b04a8ff520af0a660e7e /fs/proc/array.c | |
| parent | x86/bugs: Read SPEC_CTRL MSR during boot and re-use reserved bits (diff) | |
| download | kernel-5cf687548705412da47c9cec342fd952d71ed3d5.tar.gz kernel-5cf687548705412da47c9cec342fd952d71ed3d5.zip | |
x86/bugs, KVM: Support the combination of guest and host IBRS
A guest may modify the SPEC_CTRL MSR from the value used by the
kernel. Since the kernel doesn't use IBRS, this means a value of zero is
what is needed in the host.
But the 336996-Speculative-Execution-Side-Channel-Mitigations.pdf refers to
the other bits as reserved so the kernel should respect the boot time
SPEC_CTRL value and use that.
This allows to deal with future extensions to the SPEC_CTRL interface if
any at all.
Note: This uses wrmsrl() instead of native_wrmsl(). I does not make any
difference as paravirt will over-write the callq *0xfff.. with the wrmsrl
assembler code.
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
