summaryrefslogtreecommitdiffstats
path: root/test/qemu-eviction_guest.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-26 04:24:19 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-26 04:24:19 +0100
commit5e21196a9c7ee8eee921d74f6b5eef2f1980ec97 (patch)
treebaea207295fe1ad257506a8de08c1b64f06fbd4e /test/qemu-eviction_guest.c
parentcb7c6b3d6767335d13892451c141cfb717807712 (diff)
downloadcachepc-5e21196a9c7ee8eee921d74f6b5eef2f1980ec97.tar.gz
cachepc-5e21196a9c7ee8eee921d74f6b5eef2f1980ec97.zip
Basic qemu eviction test with signalled stepping and added rip syscall
Diffstat (limited to 'test/qemu-eviction_guest.c')
-rw-r--r--test/qemu-eviction_guest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/qemu-eviction_guest.c b/test/qemu-eviction_guest.c
index 0cb5cab..b2586a9 100644
--- a/test/qemu-eviction_guest.c
+++ b/test/qemu-eviction_guest.c
@@ -23,8 +23,10 @@ main(int argc, const char **argv)
while (1) {
printf("LOOP\n");
- CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0);
+ CPC_DO_VMMCALL(KVM_HC_CPC_VMMCALL_SIGNAL,
+ CPC_GUEST_START_TRACK, 0);
*(uint8_t *)(buf + L1_LINESIZE * 15) = 1;
- CPC_DO_VMMCALL(CPC_GUEST_STOP_TRACK, 0);
+ CPC_DO_VMMCALL(KVM_HC_CPC_VMMCALL_SIGNAL,
+ CPC_GUEST_STOP_TRACK, 0);
}
}