From patchwork Wed Apr 22 15:08:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 47417 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BB2BB20553 for ; Wed, 22 Apr 2015 15:11:07 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf52750987lbb.3 for ; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=HuOyYBaGygDFOoWO9fCO9l+dfdARyWpy/T8X4WsiS4o=; b=Y72se+ozFLumEEekjQckyNRe5a6yXWk8tnis+vHztFX6Nig30Bvyv4OrzyIUSm5bAm gT4LE8PiZkUNoVwpoNCpQ1SnLkwbYYErBTAZYLArBuQYuSFg/bWSelBI9fxGT/1k2h0X ISzfLIyCEZwAUbS9Q0Ie3xSV5GOQZI7WMwsbWnZgT1A6B2436GpDARvCyZ7vdQipj0Hy qwfcOWlSn9ZkPWcZ9LIwetqir+tUc4Mf4krvs0eXGsFaztODlAbpoKnMwrGXexM54drV 4KquPYyF+n8MaCdFjeDX3ml8Uc61GPtb6y05IGwQ0O7s0/sGnR2yt9dWgenhKbK3pB88 S4vg== X-Gm-Message-State: ALoCoQlwUUuOiOeLQqcTIE4LWacAgblSs3g606QK8xcy4SvCv3/qv0tXmjT8Qjm0XNTCx7qca2tF X-Received: by 10.180.10.136 with SMTP id i8mr1678666wib.7.1429715466719; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.7 with SMTP id m7ls131142laj.70.gmail; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) X-Received: by 10.152.29.6 with SMTP id f6mr24542116lah.85.1429715466527; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id wh2si3936674lbb.24.2015.04.22.08.11.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 08:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbbuc2 with SMTP id uc2so182597083lbb.2 for ; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) X-Received: by 10.112.16.196 with SMTP id i4mr24705933lbd.72.1429715466233; Wed, 22 Apr 2015 08:11:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1329003lbt; Wed, 22 Apr 2015 08:11:05 -0700 (PDT) X-Received: by 10.70.33.33 with SMTP id o1mr39047615pdi.132.1429715464021; Wed, 22 Apr 2015 08:11:04 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id du9si8198512pdb.80.2015.04.22.08.11.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 08:11:04 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; 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 1YkwG2-0007ZC-Uj; Wed, 22 Apr 2015 15:08:10 +0000 Received: from inca-roads.misterjones.org ([213.251.177.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkwFx-0007V3-TP for linux-arm-kernel@lists.infradead.org; Wed, 22 Apr 2015 15:08:07 +0000 Received: from [93.89.81.133] (helo=why.lan) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.80) (envelope-from ) id 1YkwFW-0007M3-2X; Wed, 22 Apr 2015 17:07:38 +0200 From: Marc Zyngier To: Paolo Bonzini , Marcelo Tosatti Subject: [PATCH 1/2] KVM: arm: irqfd: fix value returned by kvm_irq_map_gsi Date: Wed, 22 Apr 2015 16:08:37 +0100 Message-Id: <1429715318-31725-2-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1429715318-31725-1-git-send-email-marc.zyngier@arm.com> References: <1429715318-31725-1-git-send-email-marc.zyngier@arm.com> X-SA-Exim-Connect-IP: 93.89.81.133 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, mtosatti@redhat.com, eric.auger@linaro.org, christoffer.dall@linaro.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, andre.przywara@arm.com X-SA-Exim-Mail-From: marc.zyngier@arm.com X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150422_080806_126306_A791101F X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) Cc: kvm@vger.kernel.org, Eric Auger , Andre Przywara , Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.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+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: marc.zyngier@arm.com 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.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Eric Auger 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 Signed-off-by: Marc Zyngier --- 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 8d550ff..7ed7873 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -2141,7 +2141,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)