Skip to content

x86/emulator: Add some tests for loading segment descriptor in emulator

Hou Wenlong kvm 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v3 posting 2/23 patches 3 repliesSuperseded
  3. v3 posting 1/20 of 2 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches3 repliesSuperseded
v12 patches1 replySuperseded

Changes in v4 from the cover letter

- Fix build failure with --target-efi.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/emulator: Add some tests for far ret instruction emulationx86/emulator.c+130 -00 replies
2/3x86/emulator: Rename test_ljmp() as test_far_jmp()x86/emulator.c+3 -30 replies
3/3x86/emulator: Add some tests for far jmp instruction emulationx86/emulator.c+58 -130 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchSean Christopherson
1/3Reviewed-and-tested-by
2/3Reviewed-and-tested-by
3/3Reviewed-and-tested-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [kvm-unit-tests PATCH v4 0/3] x86/emulator: Add some tests for loading segment descriptor in emulator

Add some far ret and far jmp 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 v3:
- Fix build failure with --target-efi.

Changed from v2:
- Fix some complication errors, which are not gotten in my gcc.
- Rename lret as far ret, and rename ljmp as far jmp.

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

v3: https://lore.kernel.org/kvm/[email protected]

[*] https://lore.kernel.org/kvm/[email protected]

Hou Wenlong (3):
x86/emulator: Add some tests for far ret instruction emulation x86/emulator: Rename test_ljmp() as test_far_jmp() x86/emulator: Add some tests for far jmp instruction emulation

 x86/emulator.c | 203 +++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 189 insertions(+), 14 deletions(-)

--
2.31.1