mbox series

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

Message ID 20211209182624.2316453-1-aaronlewis@google.com (mailing list archive)
Headers show
Series Add additional testing for routing L2 exceptions | expand

Message

Aaron Lewis Dec. 9, 2021, 6:26 p.m. UTC
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(-)