Commit-ID: 32683a394b93723365e98edc1788cd8f4226d57e Gitweb: http://git.kernel.org/tip/32683a394b93723365e98edc1788cd8f4226d57e Author: Sasha Levin <levinsasha928@xxxxxxxxx> AuthorDate: Thu, 2 Aug 2012 16:29:23 +0200 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Sat, 4 Aug 2012 12:05:40 +0300 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 <levinsasha928@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- 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 9525341..a36bd00 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; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html