]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/arm/kvm: gic: Prevent creating userspace GICv3 with KVM
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 1 Feb 2018 20:53:07 +0000 (21:53 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Feb 2018 10:55:32 +0000 (10:55 +0000)
KVM doesn't support emulating a GICv3 in userspace, only GICv2.  We
currently attempt this anyway, and as a result a KVM guest doesn't
receive interrupts and the user is left wondering why.  Report an error
to the user if this particular combination is requested.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180201205307.30343-1-christoffer.dall@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm_arm.h

index ff53e9fafb7ab1939e090e1672ab2c822014530f..cfb7e5af72b5526fe3d35d4af4c85817170bd443 100644 (file)
@@ -234,6 +234,10 @@ static inline const char *gicv3_class_name(void)
         exit(1);
 #endif
     } else {
+        if (kvm_enabled()) {
+            error_report("Userspace GICv3 is not supported with KVM");
+            exit(1);
+        }
         return "arm-gicv3";
     }
 }