From patchwork Mon Apr 13 13:01:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 6209161 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 839C6BF4A6 for ; Mon, 13 Apr 2015 13:08:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA7CB2034B for ; Mon, 13 Apr 2015 13:08:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D051D202F8 for ; Mon, 13 Apr 2015 13:08:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yhe3q-0002IX-0H; Mon, 13 Apr 2015 13:05:58 +0000 Received: from mail-wi0-f180.google.com ([209.85.212.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yhe3a-00025C-Bf for linux-arm-kernel@lists.infradead.org; Mon, 13 Apr 2015 13:05:43 +0000 Received: by wizk4 with SMTP id k4so71552727wiz.1 for ; Mon, 13 Apr 2015 06:05:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vgYP/ySiLST4gTVo090i5XmJMwcPws5EFsKC6P7t2Sg=; b=b0APOMHtUcO2WZ7Ho4orsMukxPjvDQ2bISL1i/pMderDFO+q1Fefwt1R9bBR1WSxtE +FE7OaSK+mDkhVBIpsW44Xwb9G9/s8g/hT6iDZa+uTgBqQHD36vnxdAjC/bCtCHu51hY Ht4UeovKmObQGwy46yNk/vlUJoKunzKWYnmaORxM2D/2G7mIKotZckQu0VSKv5C0qDy4 OIebvLrqCW9w3mV3ikrkCqwIkeRwn+melqPlJ5i8tOYVCvT9+6tYf79RSEYLEPT+2KRI aLuFsQ4C2VPVUzOCWR3tsoJQyrN4ZV1epGY1BalIq5xa8oqlI1js2LTH8HiUjUQEXh0r tBFA== X-Gm-Message-State: ALoCoQk2MNJ0POxF7TEaPcv6J0IcSEfQyEYSlBkJzt1fW8KeAFrasQycAwQqzzOVPzQaJX9Kklc+ X-Received: by 10.180.105.193 with SMTP id go1mr20806354wib.92.1428930319579; Mon, 13 Apr 2015 06:05:19 -0700 (PDT) Received: from gnx2579.gnb.st.com (LCaen-156-56-7-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by mx.google.com with ESMTPSA id dj5sm11435799wjb.28.2015.04.13.06.05.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Apr 2015 06:05:18 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH] KVM: arm: irqfd: fix value returned by kvm_irq_map_gsi Date: Mon, 13 Apr 2015 15:01:59 +0200 Message-Id: <1428930119-21692-1-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150413_060542_574515_B45E7F54 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-kernel@vger.kernel.org, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP irqfd/arm curently does not support routing. kvm_irq_map_gsi is supposed to return all the routing entries associated with the provided gsi and return the number of those entries. We should return 0 at this point. Signed-off-by: Eric Auger Acked-by: Christoffer Dall --- virt/kvm/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 9ad074e..9b4f7d4 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1947,7 +1947,7 @@ int kvm_irq_map_gsi(struct kvm *kvm, struct kvm_kernel_irq_routing_entry *entries, int gsi) { - return gsi; + return 0; } int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin)