diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-05-04 09:25:18 +0800 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-05-11 07:07:34 -0400 |
commit | 3fca593bd1a16d81b12b4081ee0234c9b92cc06a (patch) | |
tree | 400326ae3ddab4f27dd907dc68c5d29b5806ea15 | |
parent | 765420c3359e89d778e683c41edc39f51df84140 (diff) | |
download | lwn-3fca593bd1a16d81b12b4081ee0234c9b92cc06a.tar.gz lwn-3fca593bd1a16d81b12b4081ee0234c9b92cc06a.zip |
KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
commit 66b030e48af68fd4c22d343908bc057207a0a31e upstream.
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 <eric.auger@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rw-r--r-- | virt/kvm/arm/vgic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 9a8c18301b7a..fc82307fbd8c 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 |