diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2018-02-01 21:53:07 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-02-09 10:55:32 +0000 |
commit | bd55947884b5421697d186016b0e57b1d6643fe0 (patch) | |
tree | 93326dec8d425ad04084dea8740a588960e94b50 | |
parent | 1db5e96c54d8b3d1df0a6fed6771390be6b010da (diff) | |
download | qemu-bd55947884b5421697d186016b0e57b1d6643fe0.zip qemu-bd55947884b5421697d186016b0e57b1d6643fe0.tar.gz qemu-bd55947884b5421697d186016b0e57b1d6643fe0.tar.bz2 |
target/arm/kvm: gic: Prevent creating userspace GICv3 with KVM
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>
-rw-r--r-- | target/arm/kvm_arm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index ff53e9f..cfb7e5a 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -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"; } } |