summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/kvm/arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/kvm/arm.c')
-rw-r--r--kernel/arch/arm/kvm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/arch/arm/kvm/arm.c b/kernel/arch/arm/kvm/arm.c
index adb19885a..0c9014d7f 100644
--- a/kernel/arch/arm/kvm/arm.c
+++ b/kernel/arch/arm/kvm/arm.c
@@ -450,7 +450,7 @@ static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu)
* Map the VGIC hardware resources before running a vcpu the first
* time on this VM.
*/
- if (unlikely(!vgic_ready(kvm))) {
+ if (unlikely(irqchip_in_kernel(kvm) && !vgic_ready(kvm))) {
ret = kvm_vgic_map_resources(kvm);
if (ret)
return ret;