From patchwork Thu May 17 13:32:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 159906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 593D7B6FBA for ; Thu, 17 May 2012 23:34:33 +1000 (EST) Received: from localhost ([::1]:51095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV0qd-0003rh-8n for incoming@patchwork.ozlabs.org; Thu, 17 May 2012 09:34:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV0pQ-0001Ya-7g for qemu-devel@nongnu.org; Thu, 17 May 2012 09:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SV0pL-0004bA-4G for qemu-devel@nongnu.org; Thu, 17 May 2012 09:33:15 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:44523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV0pK-0004ao-UX for qemu-devel@nongnu.org; Thu, 17 May 2012 09:33:11 -0400 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate03.web.de (Postfix) with ESMTP id 7B4191B4D38C9 for ; Thu, 17 May 2012 15:33:09 +0200 (CEST) Received: from localhost.localdomain ([187.105.13.240]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0LdVdS-1RnOLp3BVC-00ijnk; Thu, 17 May 2012 15:33:09 +0200 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Date: Thu, 17 May 2012 10:32:37 -0300 Message-Id: <5f8838f003e8982e8d7e0f8e70ec3a1bce8606ad.1337261556.git.jan.kiszka@web.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-Provags-ID: V02:K0:HZQj1skHE3Oir55+K4E1YWIdQ4Ig/41Ic8M49jhOulv iOcEB4BcmY5BU6H/8U4Ip9UpQdNuWGk+yUlvoU60AnrvV64crA K7zS/1cQQ07IVtGwL5SYZB3F1T8D81kJX8KKADBPGfpfYWWY0t gT2eLibWJNwPIXD2LXWOj8O0gOB67PptaV/SCdBG3Wdv6lLn3m GOR8WaE5EwBaENKLhsekQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 Cc: qemu-devel , kvm@vger.kernel.org, "Michael S. Tsirkin" Subject: [Qemu-devel] [RFC][PATCH v2 09/11] kvm: Enable use of kvm_irqchip_in_kernel in hwlib code 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 From: Jan Kiszka Provide a dummy kvm_kernel_irqchip so that kvm_irqchip_in_kernel can be used by code that is not under CONFIG_KVM protection. Signed-off-by: Jan Kiszka --- kvm-stub.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kvm-stub.c b/kvm-stub.c index b4cf03f..ec9a364 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -18,6 +18,7 @@ #include "kvm.h" KVMState *kvm_state; +bool kvm_kernel_irqchip; int kvm_init_vcpu(CPUArchState *env) {