Skip to content

Commit

Permalink
KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
Eric Auger authored and chazy committed Jan 11, 2015
1 parent bab5bb3 commit 66b030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/arm/vgic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66b030e

Please sign in to comment.