From: Sasha Levin Subject: [PATCH 6/8] kvm tools: don't exit on debug ioport write Date: Mon, 17 Sep 2012 10:03:34 +0200 Message-ID: <1347869016-17204-6-git-send-email-levinsasha928@gmail.com> References: <1347869016-17204-1-git-send-email-levinsasha928@gmail.com> Cc: asias.hejun@gmail.com, mingo@elte.hu, gorcunov@openvz.org, kvm@vger.kernel.org, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wi0-f172.google.com ([209.85.212.172]:55018 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754749Ab2IQIDa (ORCPT ); Mon, 17 Sep 2012 04:03:30 -0400 Received: by wibhi8 with SMTP id hi8so2242669wib.1 for ; Mon, 17 Sep 2012 01:03:29 -0700 (PDT) In-Reply-To: <1347869016-17204-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: While it shouldn't happen on regular guests, we sometimes hit it when fuzzing within the guest, which would cause the lkvm process to exit - which is undesired. Signed-off-by: Sasha Levin --- tools/kvm/x86/ioport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/x86/ioport.c b/tools/kvm/x86/ioport.c index 4993f9d..e35d0ee 100644 --- a/tools/kvm/x86/ioport.c +++ b/tools/kvm/x86/ioport.c @@ -5,7 +5,7 @@ static bool debug_io_out(struct ioport *ioport, struct kvm *kvm, u16 port, void *data, int size) { - exit(EXIT_SUCCESS); + return 0; } static struct ioport_operations debug_ops = { -- 1.7.12