From 32683a394b93723365e98edc1788cd8f4226d57e Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Thu, 2 Aug 2012 16:29:23 +0200 Subject: [PATCH] kvm tools: prevent guest softlockup errors when pausing Use the new KVM_KVMCLOCK_CTRL ioctl to prevent guests from wrongfully detecting lockups when in fact they were paused. Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/builtin-run.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 952534141f55..a36bd004c423 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -531,6 +531,7 @@ static void handle_pause(int fd, u32 type, u32 len, u8 *msg) kvm__continue(); } else if (type == KVM_IPC_PAUSE && !is_paused) { kvm->vm_state = KVM_VMSTATE_PAUSED; + ioctl(kvm->vm_fd, KVM_KVMCLOCK_CTRL); kvm__pause(); } else { return; -- 2.39.5