Commit 42c141f
x86/bugs: Add 'spectre_bhi=vmexit' cmdline option
In cloud environments it can be useful to *only* enable the vmexit
mitigation and leave syscalls vulnerable. Add that as an option.
This is similar to the old spectre_bhi=auto option which was removed
with the following commit:
36d4fe1 ("x86/bugs: Remove CONFIG_BHI_MITIGATION_AUTO and spectre_bhi=auto")
with the main difference being that this has a more descriptive name and
is disabled by default.
Mitigation switch requested by Maksim Davydov <[email protected]>.
[ bp: Massage. ]
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Daniel Sneddon <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Link: https://lore.kernel.org/r/2cbad706a6d5e1da2829e5e123d8d5c80330148c.1719381528.git.jpoimboe@kernel.org1 parent 4586c93 commit 42c141f
File tree
2 files changed
+20
-8
lines changed- Documentation/admin-guide
- arch/x86/kernel/cpu
2 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6136 | 6136 | | |
6137 | 6137 | | |
6138 | 6138 | | |
6139 | | - | |
6140 | | - | |
6141 | | - | |
| 6139 | + | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
| 6145 | + | |
| 6146 | + | |
| 6147 | + | |
6142 | 6148 | | |
6143 | 6149 | | |
6144 | 6150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1625 | 1625 | | |
1626 | 1626 | | |
1627 | 1627 | | |
| 1628 | + | |
1628 | 1629 | | |
1629 | 1630 | | |
1630 | 1631 | | |
| |||
1639 | 1640 | | |
1640 | 1641 | | |
1641 | 1642 | | |
| 1643 | + | |
| 1644 | + | |
1642 | 1645 | | |
1643 | 1646 | | |
1644 | 1647 | | |
| |||
1659 | 1662 | | |
1660 | 1663 | | |
1661 | 1664 | | |
| 1665 | + | |
1662 | 1666 | | |
1663 | 1667 | | |
1664 | 1668 | | |
1665 | 1669 | | |
1666 | 1670 | | |
1667 | 1671 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1671 | 1677 | | |
1672 | | - | |
| 1678 | + | |
1673 | 1679 | | |
1674 | | - | |
| 1680 | + | |
1675 | 1681 | | |
1676 | 1682 | | |
1677 | 1683 | | |
| |||
0 commit comments