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: Auger Eric X-Patchwork-Id: 47118 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBB3020553 for ; Mon, 13 Apr 2015 13:05:21 +0000 (UTC) Received: by wghm4 with SMTP id m4sf17593564wgh.2 for ; Mon, 13 Apr 2015 06:05:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=vgYP/ySiLST4gTVo090i5XmJMwcPws5EFsKC6P7t2Sg=; b=UMdpG+aboOlMtWoKzBckk4rrtg/53ZPMX5nO5ytHAKgnHkVWplQUtG39+C0FbdfQGz TzC9cVyvSkTT+JvKBZQv4NbKGdFuDb4QQs2z7PynXKq+X0UtkxKulyvZ9LzuUrIilkrq GvSeAQwJQaviYM//nZDdEk9p7eEwThMC3ceyRMKiyZ6931i+YQK4AWYy4+OvyAZySBEs FuSRQeOZ+4PsV7MBsgFAysh37tZLNLl+jVq/iqtNA/hb99ES7lGqjjdMbolnZmcMhS6D ROlHDgtxeRJ1e0mST1/evYEKjQVOBq0H4PgE/z9qTQ/uC2ezYRV1nwQASAqLtKtdeRLb zcWg== X-Gm-Message-State: ALoCoQnd/6q1MZOOxpBCyiH3TWncFIGMD0b6YZzhS78wEO2u/hXOBiPjd2IOxulWb4U+XMPpmZjJ X-Received: by 10.152.37.101 with SMTP id x5mr2254499laj.5.1428930321003; Mon, 13 Apr 2015 06:05:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.202.133 with SMTP id ki5ls730449lac.90.gmail; Mon, 13 Apr 2015 06:05:20 -0700 (PDT) X-Received: by 10.152.43.110 with SMTP id v14mr13156463lal.4.1428930320743; Mon, 13 Apr 2015 06:05:20 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id jj4si8349392lbb.174.2015.04.13.06.05.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 06:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbzk7 with SMTP id zk7so58041348lbb.0 for ; Mon, 13 Apr 2015 06:05:20 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr13079878laq.73.1428930320448; Mon, 13 Apr 2015 06:05:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1191488lbt; Mon, 13 Apr 2015 06:05:20 -0700 (PDT) X-Received: by 10.194.24.103 with SMTP id t7mr27339797wjf.15.1428930319808; Mon, 13 Apr 2015 06:05:19 -0700 (PDT) Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com. [74.125.82.53]) by mx.google.com with ESMTPS id ed5si13916909wib.67.2015.04.13.06.05.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 06:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.53 as permitted sender) client-ip=74.125.82.53; Received: by wgyo15 with SMTP id o15so80092814wgy.2 for ; Mon, 13 Apr 2015 06:05:19 -0700 (PDT) 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 Cc: linux-kernel@vger.kernel.org, patches@linaro.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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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)