From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH 1/2] kvm tools: prevent guest softlockup errors when pausing Date: Thu, 2 Aug 2012 16:29:23 +0200 Message-ID: <1343917764-28715-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, Sasha Levin To: penberg@kernel.org, mingo@elte.hu, gorcunov@gmail.com Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:35421 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123Ab2HBO3L (ORCPT ); Thu, 2 Aug 2012 10:29:11 -0400 Received: by bkwj10 with SMTP id j10so4280772bkw.19 for ; Thu, 02 Aug 2012 07:29:10 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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 --- tools/kvm/builtin-run.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 21d5f34..a4d900b 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -524,6 +524,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; -- 1.7.8.6