diff options
author | 2014-12-15 18:43:32 +0100 | |
---|---|---|
committer | 2015-01-11 14:12:15 +0100 | |
commit | 66b030e48af68fd4c22d343908bc057207a0a31e (patch) | |
tree | 7bba27841804e456c6ef97bf744c7c73d982e596 /virt/kvm/arm/vgic.c | |
parent | kvm: x86: Remove kvm_make_request from lapic.c (diff) | |
download | linux-66b030e48af68fd4c22d343908bc057207a0a31e.tar.gz linux-66b030e48af68fd4c22d343908bc057207a0a31e.tar.bz2 linux-66b030e48af68fd4c22d343908bc057207a0a31e.zip |
KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
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>
Diffstat (limited to 'virt/kvm/arm/vgic.c')
-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 03affc7bf453..b8d57e86cfdc 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 |