[kvm-unit-tests PATCH 0/3] Add additional testing for routing L2 exceptions

Aaron Lewis
2021-12-09T18:26:42Z

In a previous series testing was added to verify that when a #PF occured
in L2 the exception was routed to the correct place. In this series
other exceptions are tested (ie: #GP, #UD, #DE, #DB, #BP, #AC).

The first two changes in this series are bug fixes that were discovered
while making these changes. The last change is the test itself.

Aaron Lewis (3):
x86: Fix a #GP from occurring in usermode's exception handlers
x86: Align L2's stacks
x86: Add test coverage for the routing logic when exceptions occur in
L2

lib/x86/desc.h | 4 +
lib/x86/usermode.c | 3 +
x86/unittests.cfg | 7 ++
x86/vmx.c | 4 +-
x86/vmx_tests.c | 211 +++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 227 insertions(+), 2 deletions(-)

--
2.34.1.173.g76aa8bc2d0-goog