projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab5bb3
)
KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
author
Eric Auger
<eric.auger@linaro.org>
Mon, 15 Dec 2014 17:43:32 +0000
(18:43 +0100)
committer
Christoffer Dall
<christoffer.dall@linaro.org>
Sun, 11 Jan 2015 13:12:15 +0000
(14:12 +0100)
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>
virt/kvm/arm/vgic.c
patch
|
blob
|
blame
|
history
diff --git
a/virt/kvm/arm/vgic.c
b/virt/kvm/arm/vgic.c
index 03affc7bf453244300552bb5a448546e9730c08a..b8d57e86cfdc3e020616de013aa47c1a8e8ac096 100644
(file)
--- a/
virt/kvm/arm/vgic.c
+++ b/
virt/kvm/arm/vgic.c
@@
-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 -E
INVAL
;
+ return -E
NODEV
;
/*
* If nobody configured the number of interrupts, use the