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@xxxxxxxxxxxx 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