summaryrefslogtreecommitdiffstats
path: root/test/kvm-pagestep_guest.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-24 14:25:08 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-24 14:25:08 +0100
commite4762c2cdefacf13d26967b7e5f0735c2748026b (patch)
treeb1be976bb2d0828b70c384dad0dc70a5e849ac53 /test/kvm-pagestep_guest.S
parent501c6bcf4513d40a53022dc93d4156402d43670b (diff)
downloadcachepc-e4762c2cdefacf13d26967b7e5f0735c2748026b.tar.gz
cachepc-e4762c2cdefacf13d26967b7e5f0735c2748026b.zip
Test page tracking with potential branch prediction in guest
Diffstat (limited to 'test/kvm-pagestep_guest.S')
-rw-r--r--test/kvm-pagestep_guest.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/kvm-pagestep_guest.S b/test/kvm-pagestep_guest.S
index ef826ad..a936d2d 100644
--- a/test/kvm-pagestep_guest.S
+++ b/test/kvm-pagestep_guest.S
@@ -13,6 +13,16 @@ guest_start:
nop
.endr
+ mov $0x01, %bx
+ cmp $0x00, %bx
+
+ # NOTE: this needs to be a relative jmp
+ je skip
+.rept L1_LINESIZE * L1_SETS * 2
+ nop
+.endr
+skip:
+
mov $0x00, %ax
jmp *%ax
guest_stop: