Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66b030e4 authored by Eric Auger's avatar Eric Auger Committed by Christoffer Dall
Browse files

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: default avatarEric Auger <eric.auger@linaro.org>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent bab5bb39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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