aboutsummaryrefslogtreecommitdiff
path: root/hw/kvm/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kvm/clock.c')
-rw-r--r--hw/kvm/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kvm/clock.c b/hw/kvm/clock.c
index 6fcca95ada..be24973df9 100644
--- a/hw/kvm/clock.c
+++ b/hw/kvm/clock.c
@@ -76,7 +76,7 @@ static void kvmclock_vm_state_change(void *opaque, int running,
return;
}
for (penv = first_cpu; penv != NULL; penv = penv->next_cpu) {
- ret = kvm_vcpu_ioctl(penv, KVM_KVMCLOCK_CTRL, 0);
+ ret = kvm_vcpu_ioctl(ENV_GET_CPU(penv), KVM_KVMCLOCK_CTRL, 0);
if (ret) {
if (ret != -EINVAL) {
fprintf(stderr, "%s: %s\n", __func__, strerror(-ret));