From patchwork Tue Dec 9 11:26:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 42038 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AE7FA244AC for ; Tue, 9 Dec 2014 11:36:15 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf610517wiv.1 for ; Tue, 09 Dec 2014 03:36:15 -0800 (PST) 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=zbImge5WZAxJWkw5mdnoQguIegi+qa/ZXUIWNwZzy/k=; b=D1BVN3c7NWnRdHzKsRtCi9FQ0PCmNIiWlI6fA4ztk2rYp+kJD3pJEV4oWRsL5FpyVH Jkk1wX6NlohUN2SwCJ1JPQjrOYU/c5czszD2HSwcwoQA/hU6/hklZ8NQ8I9zCVtiQfRp S7OdJapGHLAPuDjaEnDlGAfwqr0OPcCMBEb1csZvCLo6i0G9PoB5Y+xIfjKVnBXwfOf2 ELVAjlKFXFiwH+TnB6r6Lt+18D76HOsaUJvI/tv94CTVYtC2q4ZZ2J1In7Vm4Bhuy/67 JO92w1EaQ4NujZ66M9aQtzQiX3rL7/3pMwtcppwu4lgAc3v05b1+JMRAJRhoTUufeFv3 6NIw== X-Gm-Message-State: ALoCoQm1dmwRevLbBPlWXCDg2iCn5dkV4jxAY/EWTMIa3u5DMn7EdNZO0o/yNn2zDGUucBRcb4Ds X-Received: by 10.112.188.199 with SMTP id gc7mr7132676lbc.6.1418124974964; Tue, 09 Dec 2014 03:36:14 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.7 with SMTP id 7ls21209laq.88.gmail; Tue, 09 Dec 2014 03:36:14 -0800 (PST) X-Received: by 10.152.234.169 with SMTP id uf9mr21211101lac.86.1418124974728; Tue, 09 Dec 2014 03:36:14 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id o10si1003090laj.108.2014.12.09.03.36.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Dec 2014 03:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id q1so332465lam.33 for ; Tue, 09 Dec 2014 03:36:14 -0800 (PST) X-Received: by 10.112.38.4 with SMTP id c4mr21499911lbk.46.1418124974324; Tue, 09 Dec 2014 03:36:14 -0800 (PST) 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.184.201 with SMTP id ew9csp739135lbc; Tue, 9 Dec 2014 03:36:13 -0800 (PST) X-Received: by 10.70.123.161 with SMTP id mb1mr30033141pdb.49.1418124972544; Tue, 09 Dec 2014 03:36:12 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id bj8si1307180pad.196.2014.12.09.03.36.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Dec 2014 03:36:12 -0800 (PST) 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 1XyIx5-0005pL-Cq; Tue, 09 Dec 2014 11:27:35 +0000 Received: from mail-lb0-f175.google.com ([209.85.217.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XyIvF-0004gY-Ng for linux-arm-kernel@lists.infradead.org; Tue, 09 Dec 2014 11:25:42 +0000 Received: by mail-lb0-f175.google.com with SMTP id u10so305503lbd.34 for ; Tue, 09 Dec 2014 03:25:19 -0800 (PST) X-Received: by 10.112.180.198 with SMTP id dq6mr20869082lbc.56.1418124319217; Tue, 09 Dec 2014 03:25:19 -0800 (PST) Received: from localhost.localdomain (188-178-240-98-static.dk.customer.tdc.net. [188.178.240.98]) by mx.google.com with ESMTPSA id w3sm279709law.36.2014.12.09.03.25.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 03:25:18 -0800 (PST) From: Christoffer Dall To: Paolo Bonzini , kvm@vger.kernel.org Subject: [GIT PULL 1/9] KVM: ARM: VGIC: Optimize the vGIC vgic_update_irq_pending function. Date: Tue, 9 Dec 2014 12:26:00 +0100 Message-Id: <1418124368-28418-2-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1418124368-28418-1-git-send-email-christoffer.dall@linaro.org> References: <1418124368-28418-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141209_032541_987790_63D340FD X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.175 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.217.175 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record Cc: Marc Zyngier , wanghaibin , 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: christoffer.dall@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.215.46 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: wanghaibin When vgic_update_irq_pending with level-sensitive false, it is need to deactivates an interrupt, and, it can go to out directly. Here return a false value, because it will be not need to kick. Signed-off-by: wanghaibin Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 3aaca49..5acf2c9 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1646,6 +1646,9 @@ static bool vgic_update_irq_pending(struct kvm *kvm, int cpuid, } else { vgic_dist_irq_clear_pending(vcpu, irq_num); } + + ret = false; + goto out; } enabled = vgic_irq_is_enabled(vcpu, irq_num);