From patchwork Mon Sep 17 08:03:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 1465851 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8063F3FCFC for ; Mon, 17 Sep 2012 08:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754804Ab2IQIDz (ORCPT ); Mon, 17 Sep 2012 04:03:55 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=fEpsd8uIfwz/c2Flw5RgQ9zYEOlDXBJvXtrVPcYM/p4=; b=rMpxTFUAXrZUvPZtC1dievMci2OPANpXh3LFKwOdI/0Ib38di28Z8vS0KdPzq1tk5U O187p6QwuFFB95DhGm577qGPIRkE92iZCL/2MSqVtpYVveof+jBkHb9T+PkaJ463rCQa V/bXeUGzeXKRHG7Q1utYRvn3Tr6AdrpanYfoNPP+izYwAasEN+KNuDSoinKMyZ28HStZ CL52LJTq3x7dGNL949bDGA+6vHNOr5zkHkCDB6Mtf2kDbNikcDaAZFloClRHAV2NtZ1t GuvXH1B8VoqYgV3B8MiX0UxP6/X/li51NrqmKwUIbjnUjNK4NamykeGS9XStkFHPykRd 57mA== Received: by 10.180.82.230 with SMTP id l6mr14252724wiy.21.1347869009023; Mon, 17 Sep 2012 01:03:29 -0700 (PDT) Received: from localhost.localdomain ([37.46.33.122]) by mx.google.com with ESMTPS id v3sm16632604wiw.7.2012.09.17.01.03.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 01:03:28 -0700 (PDT) From: Sasha Levin To: penberg@kernel.org Cc: asias.hejun@gmail.com, mingo@elte.hu, gorcunov@openvz.org, kvm@vger.kernel.org, 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> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1347869016-17204-1-git-send-email-levinsasha928@gmail.com> References: <1347869016-17204-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 = {