From 4dd9fe04e1399e8629ab2a98b54db6a7dcdb0076 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sun, 5 Feb 2023 16:02:54 -0600 Subject: Fix stepping inconsistency by moving oneshot after primee --- test/kvm-targetstep_guest.S | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/kvm-targetstep_guest.S') diff --git a/test/kvm-targetstep_guest.S b/test/kvm-targetstep_guest.S index 6625c54..f8ef6d8 100644 --- a/test/kvm-targetstep_guest.S +++ b/test/kvm-targetstep_guest.S @@ -25,8 +25,14 @@ guest: mov $(L1_LINESIZE * (L1_SETS + 15)), %bx movb (%bx), %bl - # this should only be partially single-stepped if - # single-stepping is limited to the first page + jmp skip +.rept L1_LINESIZE * L1_SETS + nop +.endr +skip: + + # these nops should not be single-stepped + # since they are outside the target gfn .rept L1_LINESIZE * L1_SETS * 2 nop .endr -- cgit v1.2.3-71-gd317