kvm, arm: Don't forward IRQ/FIQ when using the kernel's GIC
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 24 Apr 2017 16:38:46 +0000 (16:38 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 7 Jul 2017 10:11:16 +0000 (10:11 +0000)
commitfeb91ce576f2da6e1941697100d14bc10ace6a90
tree6af40ee5970c4234f29c3a69c31fe2fe246d5017
parent166da650a3c864b31193ade893ed99e547c67644
kvm, arm: Don't forward IRQ/FIQ when using the kernel's GIC

The BaseArmKvmCPU is responsible for forwarding the IRQ and FIQ
signals from gem5's simulated GIC to KVM. However, these signals
shouldn't be used when the in-kernel GIC emulator is used.

Instead of delivering the interrupts to the guest, we should just
ignore them since any such pending interrupts are likely to be an
artifact of CPU switching or incorrect draining.

Change-Id: I083b72639384272157f92f44a6606bdf0be7413c
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sudhanshu Jha <sudhanshu.jha@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3660
src/arch/arm/kvm/base_cpu.cc
src/arch/arm/kvm/gic.cc
src/cpu/kvm/vm.hh