From 1f418a1c4480cef90b8596ae17bdca9cc7ca1b88 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 27 Jan 2023 00:01:09 +0100 Subject: 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. --- test/kvm-step.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/kvm-step.c') diff --git a/test/kvm-step.c b/test/kvm-step.c index aec1aaf..a79b04f 100644 --- a/test/kvm-step.c +++ b/test/kvm-step.c @@ -15,9 +15,6 @@ #include #include -#define TARGET_CORE 2 -#define SECONDARY_CORE 3 - static int child; static struct cpc_event event; @@ -123,7 +120,7 @@ main(int argc, const char **argv) printf("Monitor start\n"); /* single step and log all accessed pages */ - arg = CPC_TRACK_STEPS; + arg = CPC_TRACK_STEPS_AND_FAULTS; ret = ioctl(kvm_dev, KVM_CPC_TRACK_MODE, &arg); if (ret) err(1, "KVM_CPC_TRACK_MODE"); -- cgit v1.2.3-71-gd317