x86/svm: Add testing for L1 intercept bug
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 of 2 patches 2 repliesIn review
1 of 2 patches is in this archive. The cover letter announces 2.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86/svm: Add missing svm interceptsx86/ x86/ x86/ | +131 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [kvm-unit-tests PATCH 0/2] x86/svm: Add testing for L1 intercept bug
If a feature is not advertised to L1, L1 intercepts for instructions controlled by this feature should be ignored. Currently, the added test fails due to a bug in nested vm exit handling where vmcb12 intercepts are checked before vmcb02 intercepts, causing the #UD exception to never be injected into L2 if the L1 intercept is set. This is fixed in [0]
The first patch just adds the missing intercepts needed for testing and restructures the vmcb_control_area struct to make adding the missing intercepts less ugly. The second patch adds the test which disables all relevant features that have available instruction intercepts, and checks that the #UD exception is correctly delivered despite the L1 intercept being set.
[0] https://lore.kernel.org/all/[email protected]/
Kevin Cheng (2):
x86/svm: Add missing svm intercepts x86/svm: Add unsupported instruction intercept test
x86/svm.c | 6 +- x86/svm.h | 87 ++++++++++++++++++--- x86/svm_tests.c | 188 ++++++++++++++++++++++++++++++++-------------- x86/unittests.cfg | 9 ++- 4 files changed, 220 insertions(+), 70 deletions(-)
--
2.52.0.223.gf5cc29aaa4-goog