From patchwork Thu Dec 15 12:33:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 131605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8D0E11007D4 for ; Fri, 16 Dec 2011 00:23:15 +1100 (EST) Received: from localhost ([::1]:38983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbAW6-0003jN-V2 for incoming@patchwork.ozlabs.org; Thu, 15 Dec 2011 07:34:30 -0500 Received: from eggs.gnu.org ([140.186.70.92]:35917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbAVN-0002Ff-HI for qemu-devel@nongnu.org; Thu, 15 Dec 2011 07:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbAVI-0000aQ-Ii for qemu-devel@nongnu.org; Thu, 15 Dec 2011 07:33:45 -0500 Received: from thoth.sbs.de ([192.35.17.2]:29879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbAVH-0000Zz-WA for qemu-devel@nongnu.org; Thu, 15 Dec 2011 07:33:40 -0500 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id pBFCXbJm027798; Thu, 15 Dec 2011 13:33:37 +0100 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id pBFCXW5S003584; Thu, 15 Dec 2011 13:33:37 +0100 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Date: Thu, 15 Dec 2011 13:33:31 +0100 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.2 Cc: Blue Swirl , Anthony Liguori , qemu-devel , kvm@vger.kernel.org, "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH v5 16/16] kvm: Arm in-kernel irqchip support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make the basic in-kernel irqchip support selectable via -machine ...,kernel_irqchip=on. Leave it off by default until it can fully replace user space models. Signed-off-by: Jan Kiszka --- qemu-config.c | 4 ++++ qemu-options.hx | 5 ++++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/qemu-config.c b/qemu-config.c index 597d7e1..a761bea 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -490,6 +490,10 @@ static QemuOptsList qemu_machine_opts = { .name = "accel", .type = QEMU_OPT_STRING, .help = "accelerator list", + }, { + .name = "kernel_irqchip", + .type = QEMU_OPT_BOOL, + .help = "use KVM in-kernel irqchip", }, { /* End of list */ } }, diff --git a/qemu-options.hx b/qemu-options.hx index 681eaf1..60b7dc0 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -31,7 +31,8 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ "-machine [type=]name[,prop[=value][,...]]\n" " selects emulated machine (-machine ? for list)\n" " property accel=accel1[:accel2[:...]] selects accelerator\n" - " supported accelerators are kvm, xen, tcg (default: tcg)\n", + " supported accelerators are kvm, xen, tcg (default: tcg)\n" + " kernel_irqchip=on|off controls accelerated irqchip support\n", QEMU_ARCH_ALL) STEXI @item -machine [type=]@var{name}[,prop=@var{value}[,...]] @@ -44,6 +45,8 @@ This is used to enable an accelerator. Depending on the target architecture, kvm, xen, or tcg can be available. By default, tcg is used. If there is more than one accelerator specified, the next one is used if the previous one fails to initialize. +@item kernel_irqchip=on|off +Enables in-kernel irqchip support for the chosen accelerator when available. @end table ETEXI