summaryrefslogtreecommitdiffstats
path: root/test/kvm-targetstep_guest.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-05 16:02:54 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-06 07:01:01 -0600
commit4dd9fe04e1399e8629ab2a98b54db6a7dcdb0076 (patch)
tree887ef659e545698927c9997b53a80beaebcbd4ce /test/kvm-targetstep_guest.S
parent0d4f62bcc065026390dd1f19b0bb462d07dcf9ff (diff)
downloadcachepc-4dd9fe04e1399e8629ab2a98b54db6a7dcdb0076.tar.gz
cachepc-4dd9fe04e1399e8629ab2a98b54db6a7dcdb0076.zip
Fix stepping inconsistency by moving oneshot after primee
Diffstat (limited to 'test/kvm-targetstep_guest.S')
-rw-r--r--test/kvm-targetstep_guest.S10
1 files changed, 8 insertions, 2 deletions
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