From patchwork Sat Apr 9 13:04:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pekka Enberg X-Patchwork-Id: 695951 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p39D4Hrs002628 for ; Sat, 9 Apr 2011 13:04:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306Ab1DINEO (ORCPT ); Sat, 9 Apr 2011 09:04:14 -0400 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:45145 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048Ab1DINEN (ORCPT ); Sat, 9 Apr 2011 09:04:13 -0400 Received: from localhost (localhost [127.0.0.1]) by filtteri1.pp.htv.fi (Postfix) with ESMTP id 8F1C28BBB6; Sat, 9 Apr 2011 16:04:12 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new, port 10024) with ESMTP id h1BuPP70Z5qO; Sat, 9 Apr 2011 16:04:12 +0300 (EEST) Received: from localhost.localdomain (cs181148025.pp.htv.fi [82.181.148.25]) by smtp5.welho.com (Postfix) with ESMTP id E83945BC005; Sat, 9 Apr 2011 16:04:11 +0300 (EEST) From: Pekka Enberg To: kvm@vger.kernel.org Cc: Pekka Enberg , Asias He , Cyrill Gorcunov , Ingo Molnar , Prasad Joshi Subject: [PATCH] kvm tools: Fix 'kill -3' to send SysRq-P to the guest Date: Sat, 9 Apr 2011 16:04:11 +0300 Message-Id: <1302354251-11102-1-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 1.7.0.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 09 Apr 2011 13:04:17 +0000 (UTC) Commit ff56002 ("kvm tools: Use the Gitish freamwork to run the virtual machine") broken SysRq-P support in the hypervisor. Fix that up. Cc: Asias He Cc: Cyrill Gorcunov Cc: Ingo Molnar Cc: Prasad Joshi Signed-off-by: Pekka Enberg --- tools/kvm/kvm-run.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 5670b1d..189d629 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -42,14 +42,7 @@ static void handle_sigint(int sig) static void handle_sigquit(int sig) { - kvm_cpu__show_registers(current_cpu); - kvm_cpu__show_code(current_cpu); - kvm_cpu__show_page_tables(current_cpu); - - kvm_cpu__delete(current_cpu); - kvm__delete(kvm); - - exit(1); + serial8250__inject_sysrq(kvm); } static void handle_sigalrm(int sig)