diff options
author | Alexander Graf | 2017-07-11 12:21:26 +0200 |
---|---|---|
committer | Peter Maydell | 2017-07-11 12:21:26 +0200 |
commit | 5d721b785fbe80170fc756e9444cf751d3a47568 (patch) | |
tree | bfd169dc02c4d5550e1714e436eff3174817a0be /target/arm/cpu.h | |
parent | aspeed: Register all watchdogs (diff) | |
download | qemu-5d721b785fbe80170fc756e9444cf751d3a47568.tar.gz qemu-5d721b785fbe80170fc756e9444cf751d3a47568.tar.xz qemu-5d721b785fbe80170fc756e9444cf751d3a47568.zip |
ARM: KVM: Enable in-kernel timers with user space gic
When running with KVM enabled, you can choose between emulating the
gic in kernel or user space. If the kernel supports in-kernel virtualization
of the interrupt controller, it will default to that. If not, if will
default to user space emulation.
Unfortunately when running in user mode gic emulation, we miss out on
interrupt events which are only available from kernel space, such as the timer.
This patch leverages the new kernel/user space pending line synchronization for
timer events. It does not handle PMU events yet.
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1498577737-130264-1-git-send-email-agraf@suse.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 16a1e59615..102c58afac 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -706,6 +706,9 @@ struct ARMCPU { void *el_change_hook_opaque; int32_t node_id; /* NUMA node this CPU belongs to */ + + /* Used to synchronize KVM and QEMU in-kernel device levels */ + uint8_t device_irq_level; }; static inline ARMCPU *arm_env_get_cpu(CPUARMState *env) |