From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: [PATCH 5/6] kvm tools: Remove resume pause noise. Date: Thu, 22 Dec 2011 10:10:46 +0800 Message-ID: <1324519847-19897-5-git-send-email-asias.hejun@gmail.com> References: <1324519847-19897-1-git-send-email-asias.hejun@gmail.com> Cc: Sasha Levin , Cyrill Gorcunov , Ingo Molnar , kvm@vger.kernel.org, Asias He To: Pekka Enberg Return-path: Received: from mail-tul01m020-f174.google.com ([209.85.214.174]:41609 "EHLO mail-tul01m020-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753074Ab1LVCMk (ORCPT ); Wed, 21 Dec 2011 21:12:40 -0500 Received: by mail-tul01m020-f174.google.com with SMTP id wo16so3706331obc.19 for ; Wed, 21 Dec 2011 18:12:40 -0800 (PST) In-Reply-To: <1324519847-19897-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Remove this annoying message if user resumes or pauses a guest whcih is already resumed or paused. Warning: (builtin-run.c) handle_pause:520: failed condition: 1 Signed-off-by: Asias He --- tools/kvm/builtin-run.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index bf39cfb..4691e1b 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -517,7 +517,6 @@ static void handle_pause(int fd, u32 type, u32 len, u8 *msg) kvm->vm_state = KVM_VMSTATE_PAUSED; kvm__pause(); } else { - WARN_ON(1); return; } -- 1.7.7.3