提交 66b030e4 编写于 作者: E Eric Auger 提交者: Christoffer Dall

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: NEric Auger <eric.auger@linaro.org>
Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
上级 bab5bb39
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册