mbox series

[kvm-unit-tests,v2,0/2] x86/emulator: Add some tests for loading segment descriptor in emulator

Message ID cover.1644311445.git.houwenlong.hwl@antgroup.com (mailing list archive)
Headers show
Series x86/emulator: Add some tests for loading segment descriptor in emulator | expand

Message

Hou Wenlong Feb. 8, 2022, 9:30 a.m. UTC
Add some lret and ljmp tests for the related x86 emulator bugs[*]. Those tests
would be tested both on hardware and emulator. Enable kvm.force_emulation_prefix
to test them on emulator.

Changed from v1:
- As Sean suggested, refactor the test loop to make the code simple.

[*] https://lore.kernel.org/kvm/cover.1644292363.git.houwenlong.hwl@antgroup.com

Hou Wenlong (2):
  x86/emulator: Add some tests for lret instruction emulation
  x86/emulator: Add some tests for ljmp instruction emulation

 x86/emulator.c | 205 +++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 192 insertions(+), 13 deletions(-)

--
2.31.1