Message ID | 1431343152-19437-14-git-send-email-sasha.levin@oracle.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBZVAYKVAKGQEBLJNSRQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E883121550 for <linaro@patches.linaro.org>; Mon, 11 May 2015 11:20:07 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf40901728lab.1 for <linaro@patches.linaro.org>; Mon, 11 May 2015 04:20: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:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=LjOPiU3GcIlya2VlfOVmHc6Y38YT/V8aIzRkGwV3InA=; b=UTPmKaz98XPJ2DsqKReaMfsSEon96/k205X8f+zt8mfTK7Ar4m4U6pS/8nMOc1mqLp PdftTmn7xcfbNzCzd3Zx5YulzMPQ/K9G61GmjyOd8CNKlxKdtuzkT2PVEbo56MH6SES4 BboJKDUMnX33ssfztb7S1Q8UNc+tDtS3ju4o2b/FP1/I+B7tQIb6aicLvnQvfeLvZ/mA sgYxHhP3uuYrt5bCimoMbX658BaQxCxYYBXSzpAMIY1ONtMKK2iskpYTHdLxF3NAoPVL ZzCjBBxHA2xzzjFnvIrf5PLpB/pzyscF7xjh4PTOP8Ym0KSsNmxUIDGVNGdMbi/0nF1q u4rw== X-Gm-Message-State: ALoCoQn5vZfSghoiJsJ9k3rWVlqUTzg3xy0aUhvq2F4P9b4TLAVLyNH2zJNuR04SAVdpqUixqrzZ X-Received: by 10.180.105.226 with SMTP id gp2mr7674644wib.1.1431343206810; Mon, 11 May 2015 04:20:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.164 with SMTP id cz4ls655071lac.3.gmail; Mon, 11 May 2015 04:20:06 -0700 (PDT) X-Received: by 10.153.7.66 with SMTP id da2mr7658133lad.94.1431343206679; Mon, 11 May 2015 04:20:06 -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 w6si8191148lbj.46.2015.05.11.04.20.06 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 04:20:06 -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 zk7so91396487lbb.0 for <patchwork-forward@linaro.org>; Mon, 11 May 2015 04:20:06 -0700 (PDT) X-Received: by 10.152.27.98 with SMTP id s2mr7753865lag.106.1431343206593; Mon, 11 May 2015 04:20: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.108.230 with SMTP id hn6csp1444744lbb; Mon, 11 May 2015 04:20:05 -0700 (PDT) X-Received: by 10.70.95.228 with SMTP id dn4mr18384566pdb.89.1431343191257; Mon, 11 May 2015 04:19:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si17550607pas.160.2015.05.11.04.19.50; Mon, 11 May 2015 04:19:51 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbbEKLTt (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Mon, 11 May 2015 07:19:49 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:26357 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753981AbbEKLTn (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 11 May 2015 07:19:43 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t4BBJfGM003531 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 11 May 2015 11:19:41 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t4BBJfbu008888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 11 May 2015 11:19:41 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t4BBJehm025387; Mon, 11 May 2015 11:19:41 GMT Received: from lappy.hsd1.nh.comcast.net (/10.159.243.153) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 May 2015 04:19:40 -0700 From: Sasha Levin <sasha.levin@oracle.com> To: stable@vger.kernel.org, stable-commits@vger.kernel.org Cc: Eric Auger <eric.auger@linaro.org>, Christoffer Dall <christoffer.dall@linaro.org>, Shannon Zhao <shannon.zhao@linaro.org>, Sasha Levin <sasha.levin@oracle.com> Subject: [added to the 3.18 stable tree] KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu Date: Mon, 11 May 2015 07:16:35 -0400 Message-Id: <1431343152-19437-14-git-send-email-sasha.levin@oracle.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1431343152-19437-1-git-send-email-sasha.levin@oracle.com> References: <1431343152-19437-1-git-send-email-sasha.levin@oracle.com> X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: stable-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@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 9a8c183..fc82307 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1807,7 +1807,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