diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-27 00:01:09 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-27 00:55:29 +0100 |
| commit | 1f418a1c4480cef90b8596ae17bdca9cc7ca1b88 (patch) | |
| tree | b0358e4febd22c65612c80fa93cfaeb0a3510053 /test/qemu-eviction_guest.c | |
| parent | 5e21196a9c7ee8eee921d74f6b5eef2f1980ec97 (diff) | |
| download | cachepc-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/qemu-eviction_guest.c')
| -rw-r--r-- | test/qemu-eviction_guest.c | 13 |
1 files changed, 13 insertions, 0 deletions
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); |
