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/qemu-eviction_guest.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/qemu-eviction_guest.c') diff --git a/test/qemu-eviction_guest.c b/test/qemu-eviction_guest.c index b2586a9..086fee5 100644 --- a/test/qemu-eviction_guest.c +++ b/test/qemu-eviction_guest.c @@ -25,6 +25,19 @@ main(int argc, const char **argv) printf("LOOP\n"); CPC_DO_VMMCALL(KVM_HC_CPC_VMMCALL_SIGNAL, CPC_GUEST_START_TRACK, 0); + *(uint8_t *)(buf + L1_LINESIZE * 9) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 10) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 11) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 12) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 13) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 14) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 15) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 9) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 10) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 11) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 12) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 13) = 1; + *(uint8_t *)(buf + L1_LINESIZE * 14) = 1; *(uint8_t *)(buf + L1_LINESIZE * 15) = 1; CPC_DO_VMMCALL(KVM_HC_CPC_VMMCALL_SIGNAL, CPC_GUEST_STOP_TRACK, 0); -- cgit v1.2.3-71-gd317