From patchwork Fri Jan 23 10:02:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 43572 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC275218DB for ; Fri, 23 Jan 2015 10:05:22 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id x12sf3667915wgg.0 for ; Fri, 23 Jan 2015 02:05:22 -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=D+n0E/PG5782nWZMeGeT1Id8fuVhNKKkXucoGNos2BE=; b=DiN/519Nf4qwltb53Ib6GqFmLmLgg4F5fjTO630o2L/zDeKTpc1VHk0/6ygxYNNlE0 TcRS0x7sxA3qf7s0uBvj03R7m2v/Z9HY5LpqrNNqmGT0qu900x+n8Yenci1MV6QpkUhk ceMgJ1R6HBJG9qnnPvx7iVKAPjffPbSPiXvqSn9PucfkrDAJep1zT7ouF8fJYZuI+gYm De/nEYXzCheb+0TtF2jUfDzWFSCL4SEgILCILF7MlKGsmNlL3ryro1P7MUQjLipe8z+U xYUSfagiQQdj29lUHDx69xoUn4Ca2AGG4xSHTL7ocFwPahfMUReBf2W9NWx7Ila1cH9b lqfg== X-Gm-Message-State: ALoCoQmB1VRUyzSU4rfhR1Cf+1keBKMqvTk9k4giNM/FsNA4BF+HHM32quUCaUSiF9/7oEJ8YE2x X-Received: by 10.112.162.35 with SMTP id xx3mr69889lbb.16.1422007522112; Fri, 23 Jan 2015 02:05:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.98 with SMTP id l2ls250781laf.73.gmail; Fri, 23 Jan 2015 02:05:21 -0800 (PST) X-Received: by 10.152.23.98 with SMTP id l2mr6317273laf.46.1422007521962; Fri, 23 Jan 2015 02:05:21 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id to9si954671lbb.15.2015.01.23.02.05.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 02:05:21 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id q1so6445564lam.2 for ; Fri, 23 Jan 2015 02:05:21 -0800 (PST) X-Received: by 10.112.52.229 with SMTP id w5mr6383881lbo.52.1422007521786; Fri, 23 Jan 2015 02:05:21 -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.9.200 with SMTP id c8csp193620lbb; Fri, 23 Jan 2015 02:05:20 -0800 (PST) X-Received: by 10.66.224.199 with SMTP id re7mr9797177pac.65.1422007519884; Fri, 23 Jan 2015 02:05:19 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id je7si1447848pbd.15.2015.01.23.02.05.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 02:05:19 -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 1YEb5l-00042Z-OJ; Fri, 23 Jan 2015 10:03:53 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YEb5M-0003lh-Eu for linux-arm-kernel@lists.infradead.org; Fri, 23 Jan 2015 10:03:29 +0000 Received: by mail-lb0-f181.google.com with SMTP id u10so6138167lbd.12 for ; Fri, 23 Jan 2015 02:03:06 -0800 (PST) X-Received: by 10.152.27.69 with SMTP id r5mr1328411lag.18.1422007385927; Fri, 23 Jan 2015 02:03:05 -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 pg3sm331848lbb.8.2015.01.23.02.03.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jan 2015 02:03:05 -0800 (PST) From: Christoffer Dall To: Paolo Bonzini , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL 01/36] KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu Date: Fri, 23 Jan 2015 11:02:30 +0100 Message-Id: <1422007385-14730-2-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1422007385-14730-1-git-send-email-christoffer.dall@linaro.org> References: <1422007385-14730-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150123_020328_719076_422549B9 X-CRM114-Status: GOOD ( 10.94 ) 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.181 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.181 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Marc Zyngier , Christoffer Dall , kvm@vger.kernel.org, Eric Auger 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.43 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 To be more explicit on vgic initialization failure, -ENODEV is returned by vgic_init when no online vcpus can be found at init. Signed-off-by: Eric Auger Signed-off-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 03affc7..b8d57e8 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1809,7 +1809,7 @@ static int vgic_init(struct kvm *kvm) nr_cpus = dist->nr_cpus = atomic_read(&kvm->online_vcpus); if (!nr_cpus) /* No vcpus? Can't be good... */ - return -EINVAL; + return -ENODEV; /* * If nobody configured the number of interrupts, use the