From: Sasha Levin Date: Thu, 2 Aug 2012 14:29:23 +0000 (+0200) Subject: kvm tools: prevent guest softlockup errors when pausing X-Git-Tag: next-20120816~7^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=32683a394b93723365e98edc1788cd8f4226d57e;p=karo-tx-linux.git 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 --- 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;