commit 2f5b1570df4ad2409d648b27bdaf445a29261a80
parent b52b4a44ac0150ef76295f34e1413a150601b92d
Author: Vincent Ulitzsch <vincent@sect.tu-berlin.de>
Date: Fri, 14 Oct 2022 20:19:28 +0200
Update with debugging update for ack event
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cachepc/kvm.c b/cachepc/kvm.c
@@ -954,6 +954,7 @@ cachepc_kvm_ioctl(struct file *file, unsigned int ioctl, unsigned long arg)
case KVM_CPC_POLL_EVENT:
return cachepc_kvm_poll_event_ioctl(arg_user);
case KVM_CPC_ACK_EVENT:
+ pr_warn("Cachepc: CPC_ACK_EVENT called");
return cachepc_kvm_uscpt_ack_event_ioctl(arg_user);
default:
return kvm_arch_dev_ioctl(file, ioctl, arg);
diff --git a/test/sevstep.c b/test/sevstep.c
@@ -445,6 +445,7 @@ collect(struct kvm *kvm)
event.retired_instructions);
ack.id = event.id;
+ printf("Acking event %d \n", ack.id);
ret = ioctl(kvm_dev, KVM_CPC_ACK_EVENT, &ack);
if (ret == -1) err(1, "ioctl ACK_EVENT");
} else if (ret != CPC_USPT_POLL_EVENT_NO_EVENT) {