KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
authorEric Auger <eric.auger@linaro.org>
Mon, 15 Dec 2014 17:43:32 +0000 (18:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:43 +0000 (22:01 +0200)
commit66a97aa44c7d2f90765067e15451a29ff8b6c16b
tree6245b7a04fc30253a103f1d7f5f45f24b4103f76
parent288e76c094a2d219d67eb980de66721e0145b2fb
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic.c