|
@@ -1809,7 +1809,7 @@ static int vgic_init(struct kvm *kvm)
|
|
|
|
|
|
|
|
nr_cpus = dist->nr_cpus = atomic_read(&kvm->online_vcpus);
|
|
nr_cpus = dist->nr_cpus = atomic_read(&kvm->online_vcpus);
|
|
|
if (!nr_cpus) /* No vcpus? Can't be good... */
|
|
if (!nr_cpus) /* No vcpus? Can't be good... */
|
|
|
- return -EINVAL;
|
|
|
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* If nobody configured the number of interrupts, use the
|
|
* If nobody configured the number of interrupts, use the
|