summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-05-12 20:10:00 +0200
committerThomas Gleixner <tglx@linutronix.de>2018-05-17 17:09:20 +0200
commitbe6fcb5478e95bb1c91f489121238deb3abca46a (patch)
treec27fa962513013e6df71c61e12ce85ba11d67830 /LICENSES
parent4b59bdb569453a60b752b274ca61f009e37f4dae (diff)
downloadlinux-be6fcb5478e95bb1c91f489121238deb3abca46a.tar.bz2
x86/bugs: Rework spec_ctrl base and mask logic
x86_spec_ctrL_mask is intended to mask out bits from a MSR_SPEC_CTRL value which are not to be modified. However the implementation is not really used and the bitmask was inverted to make a check easier, which was removed in "x86/bugs: Remove x86_spec_ctrl_set()" Aside of that it is missing the STIBP bit if it is supported by the platform, so if the mask would be used in x86_virt_spec_ctrl() then it would prevent a guest from setting STIBP. Add the STIBP bit if supported and use the mask in x86_virt_spec_ctrl() to sanitize the value which is supplied by the guest. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions