From patchwork Thu Jul 26 14:35:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 10279 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 09A8623E57 for ; Thu, 26 Jul 2012 14:35:25 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id CE756A188B0 for ; Thu, 26 Jul 2012 14:35:24 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so2035393yhp.11 for ; Thu, 26 Jul 2012 07:35:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=m32ht+nCNfXd1g8TaxhIvxdkH4tu/FAb2Qp2o823414=; b=RFCzuqdCbnvr5sRsi8ndVCSUAHX7Iv45ZDKvOGbf0/KfjWzKpbomtoL4L5RUjtqLXk 23BNCrCPIaiXKSsqGhAAUskQTszvE7lvkfGPAklZ4ATP+Fi9++L0H0O/xYln4+u774Wo 96xmZeSPl5fR+NqhlOoHKb6zzkFne2p+Jj8ANN1BoC+wYTZPZZx8pMLO+SVje9FabTZI 6sETuJ9BKHxLiyu38Q4e/TNaMRp32VplO1dd4jCIsblFfcB5VTpsUNfDjJTBjfLs9EcQ gJgcnzFalaQTgvFwbhH7H5KQIU78sflTbtKe6tMEPTOH7JpWDDdKj3BxmLnQB0xOqJ7b RbhA== Received: by 10.50.242.73 with SMTP id wo9mr1817627igc.1.1343313324444; Thu, 26 Jul 2012 07:35:24 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.43.93.3 with SMTP id bs3csp142939icc; Thu, 26 Jul 2012 07:35:22 -0700 (PDT) Received: by 10.204.130.216 with SMTP id u24mr14075567bks.119.1343313321442; Thu, 26 Jul 2012 07:35:21 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id w13si22890860bkv.120.2012.07.26.07.35.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jul 2012 07:35:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SuP9q-00073Y-8Q; Thu, 26 Jul 2012 15:35:18 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Avi Kivity , Marcelo Tosatti , Jan Kiszka , Alexander Graf Subject: [PATCH v2 7/7] kvm: Add documentation comment for kvm_irqchip_in_kernel() Date: Thu, 26 Jul 2012 15:35:17 +0100 Message-Id: <1343313317-27087-8-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1343313317-27087-1-git-send-email-peter.maydell@linaro.org> References: <1343313317-27087-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQlbbNbujE07poCczM5yZ1kqaPGWyI4Aq+P0yQ1dp3GHmc9IQwYOhsdB6OpWR5iZXJSauMx5 Now we've cleared out the architecture-independent uses of kvm_irqchip_in_kernel(), we can add a doc comment describing what it means. Signed-off-by: Peter Maydell --- kvm.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/kvm.h b/kvm.h index 444ed2e..5b8f588 100644 --- a/kvm.h +++ b/kvm.h @@ -31,6 +31,17 @@ extern bool kvm_gsi_routing_allowed; #if defined CONFIG_KVM || !defined NEED_CPU_H #define kvm_enabled() (kvm_allowed) +/** + * kvm_irqchip_in_kernel: + * + * Returns: true if the user asked us to create an in-kernel + * irqchip via the "kernel_irqchip=on" machine option. + * What this actually means is architecture and machine model + * specific: on PC, for instance, it means that the LAPIC, + * IOAPIC and PIT are all in kernel. This function should never + * be used from generic target-independent code: use one of the + * following functions or some other specific check instead. + */ #define kvm_irqchip_in_kernel() (kvm_kernel_irqchip) /**