diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/aes-detect_guest.c | 4 | ||||
| -rw-r--r-- | test/fullstep.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/aes-detect_guest.c b/test/aes-detect_guest.c index 1b21ebd..2b0f2ad 100644 --- a/test/aes-detect_guest.c +++ b/test/aes-detect_guest.c @@ -40,10 +40,8 @@ main(int argc, const char **argv) while (1) { CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0); - buf[L1_LINESIZE * 5] += 1; - - CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0); + CPC_DO_VMMCALL(CPC_GUEST_STOP_TRACK, 0); } return 0; diff --git a/test/fullstep.c b/test/fullstep.c index 98272c1..52e745a 100644 --- a/test/fullstep.c +++ b/test/fullstep.c @@ -460,8 +460,8 @@ monitor(struct kvm *kvm, bool baseline) ret = ioctl(kvm_dev, KVM_CPC_READ_COUNTS, counts); if (ret == -1) err(1, "ioctl READ_COUNTS"); - rip = 0; // snp_dbg_rip(kvm->vmfd); if (!baseline) { + rip = snp_dbg_rip(kvm->vmfd); printf("Event: cnt:%llu inst:%llu data:%llu retired:%llu rip:%lu\n", event.step.fault_count, event.step.fault_gfns[0], @@ -542,7 +542,7 @@ main(int argc, const char **argv) if ((pid = fork())) { if (pid < 0) err(1, "fork"); - sleep(1); /* give time for child to pin other core */ + sleep(1); /* wait for child to pin other core */ printf("VMRUN\n"); runonce(&kvm_with_access); |
