summaryrefslogtreecommitdiffstats
path: root/test/kvm-pagestep.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-27 00:01:09 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-27 00:55:29 +0100
commit1f418a1c4480cef90b8596ae17bdca9cc7ca1b88 (patch)
treeb0358e4febd22c65612c80fa93cfaeb0a3510053 /test/kvm-pagestep.c
parent5e21196a9c7ee8eee921d74f6b5eef2f1980ec97 (diff)
downloadcachepc-1f418a1c4480cef90b8596ae17bdca9cc7ca1b88.tar.gz
cachepc-1f418a1c4480cef90b8596ae17bdca9cc7ca1b88.zip
Added initial qemu-eviction and qemu-pagestep
Qemu-eviction seems to get stuck somewhere, potentially in the VC-handler(?) since we use the active gfn after resuming execution. Added qemu-pagestep to show viability of page-stepping for later use.
Diffstat (limited to 'test/kvm-pagestep.c')
-rw-r--r--test/kvm-pagestep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/kvm-pagestep.c b/test/kvm-pagestep.c
index 4bd4ac0..9bbb7bc 100644
--- a/test/kvm-pagestep.c
+++ b/test/kvm-pagestep.c
@@ -15,9 +15,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define TARGET_CORE 2
-#define SECONDARY_CORE 3
-
static int child;
uint64_t
@@ -26,7 +23,6 @@ monitor(struct kvm *kvm, bool baseline)
struct cpc_event event;
int ret;
- /* Get page fault info */
ret = ioctl(kvm_dev, KVM_CPC_POLL_EVENT, &event);
if (ret && errno == EAGAIN) return 0;
if (ret) err(1, "KVM_CPC_POLL_EVENT");