Skip to content

Commit 4f0f8ba

Browse files
committed
chore: Add ibpb_exit_to_user as host only feature
New Amazon Linux host kernels enable mitigation against VMScape that is IBPB before exit to userspace. However, our guest kernels still haven't had the patches yet. Note that Intel Ice Lake is not affected by VMScape as long as BHB clearing sequence is used to mitigate BHI. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 22e84fe commit 4f0f8ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration_tests/functional/test_cpu_features_host_vs_guest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"hwp_act_window",
5050
"hwp_epp",
5151
"hwp_pkg_req",
52+
"ibpb_exit_to_user",
5253
"ida",
5354
"intel_ppin",
5455
"intel_pt",
@@ -93,6 +94,7 @@
9394
"extapic",
9495
"flushbyasid",
9596
"hw_pstate",
97+
"ibpb_exit_to_user",
9698
"ibs",
9799
"irperf",
98100
"lbrv",
@@ -184,6 +186,11 @@ def test_host_vs_guest_cpu_features(uvm_plain_any):
184186
expected_host_minus_guest = INTEL_HOST_ONLY_FEATS
185187
expected_guest_minus_host = INTEL_GUEST_ONLY_FEATS
186188

189+
# As long as BHB clearing software mitigation is enabled, Intel Ice Lake is not
190+
# vulnerable to VMScape and "IBPB before exit to userspace" is not needed.
191+
# https://docs.kernel.org/admin-guide/hw-vuln/vmscape.html#affected-processors
192+
expected_host_minus_guest -= {"ibpb_exit_to_user"}
193+
187194
# Linux kernel v6.4+ passes through the CPUID bit for "flush_l1d" to guests.
188195
# https://github.com/torvalds/linux/commit/45cf86f26148e549c5ba4a8ab32a390e4bde216e
189196
#

0 commit comments

Comments
 (0)