Message ID | 1417686484-20828-2-git-send-email-eric.auger@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDU5RLWMTQJRBPO4QCSAKGQEPCYLBUQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 222A525E8C for <linaro@patches.linaro.org>; Thu, 4 Dec 2014 09:49:50 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf10774380eek.9 for <linaro@patches.linaro.org>; Thu, 04 Dec 2014 01:49:49 -0800 (PST) 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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=xyBSKqYkq5Swu0OPyZzhCgXxsFoSvYnF83TEuonF3sE=; b=nFXVfhtQi9QMnF0eXMorTnl3ESd2rpPXtrwZi7pRNFQdPfWwXhTJgG+mJ8b3Mnw54/ YJNDmI9RpkZj6+lXJUhQK4Zu7x11X5CDnu8gi0d98O7JDmsIHKnucLHRl72LzkMQNA25 gcp3CXaJC9meZavySIor71sZrwsHDD0ON5Ot4Ny4/AESUws7vC7fU9YtcgMr1zqoqHPT 5/lMJR1lMIWkc0liS6EYBN1PE3yAmwq6tJ8YV5IdiWdax+tIB6ujMOi+/zjPe9NIe9EC ja/1Txlqph0fKYtZicNaH+XuNctu1/9ZphswlEBxHNoNI5LwWYSpYkQl2thl8aaGZGrI UT7w== X-Gm-Message-State: ALoCoQmCC6iWmqPyDGVB6cUpvUHX6wb5yO74/v1nj5IqAC5MC9j7pyCUvJov0gOh+F531S+Ubtgj X-Received: by 10.112.72.106 with SMTP id c10mr222828lbv.15.1417686589312; Thu, 04 Dec 2014 01:49:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.225 with SMTP id y1ls250158lae.25.gmail; Thu, 04 Dec 2014 01:49:49 -0800 (PST) X-Received: by 10.152.23.201 with SMTP id o9mr8490291laf.75.1417686589139; Thu, 04 Dec 2014 01:49:49 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id l7si25316261lbd.107.2014.12.04.01.49.49 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 01:49:49 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so13999318lab.10 for <patchwork-forward@linaro.org>; Thu, 04 Dec 2014 01:49:49 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr8427357lad.44.1417686589012; Thu, 04 Dec 2014 01:49:49 -0800 (PST) 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.184.201 with SMTP id ew9csp6837lbc; Thu, 4 Dec 2014 01:49:48 -0800 (PST) X-Received: by 10.180.88.165 with SMTP id bh5mr20018634wib.77.1417686588360; Thu, 04 Dec 2014 01:49:48 -0800 (PST) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com. [209.85.212.172]) by mx.google.com with ESMTPS id xy3si43813559wjc.174.2014.12.04.01.49.48 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 01:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.172 as permitted sender) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id n3so34048732wiv.17 for <patches@linaro.org>; Thu, 04 Dec 2014 01:49:48 -0800 (PST) X-Received: by 10.194.24.103 with SMTP id t7mr14327353wjf.15.1417686588144; Thu, 04 Dec 2014 01:49:48 -0800 (PST) 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 wz5sm39765342wjc.29.2014.12.04.01.49.46 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 01:49:47 -0800 (PST) From: Eric Auger <eric.auger@linaro.org> To: eric.auger@st.com, eric.auger@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, andre.przywara@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, alex.williamson@redhat.com, agraf@suse.de, gleb@kernel.org, pbonzini@redhat.com Cc: linux-kernel@vger.kernel.org, patches@linaro.org, will.deacon@arm.com, a.motakis@virtualopensystems.com Subject: [PATCH v2 1/4] KVM: arm/arm64: vgic: vgic_init_maps returns -ENODEV when no online vcpu Date: Thu, 4 Dec 2014 10:48:01 +0100 Message-Id: <1417686484-20828-2-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417686484-20828-1-git-send-email-eric.auger@linaro.org> References: <1417686484-20828-1-git-send-email-eric.auger@linaro.org> 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.215.51 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index b76c38c..907ba0e 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1991,7 +1991,7 @@ static int vgic_init_maps(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
To be more explicit upon vgic initialization failure, -ENODEV is returned by vgic_init_maps when no online vcpus can be found at init. Signed-off-by: Eric Auger <eric.auger@linaro.org> --- virt/kvm/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)