qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RFC v2 0/2] Enable cp15 timers with user space gic & kvm
@ 2016-11-14 14:32 Alexander Graf
  2016-11-14 14:32 ` [Qemu-devel] [PATCH RFC v2 1/2] linux-headers: update Alexander Graf
  2016-11-14 14:32 ` [Qemu-devel] [PATCH RFC v2 2/2] ARM: KVM: Enable in-kernel timers with user space gic Alexander Graf
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Graf @ 2016-11-14 14:32 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Peter Maydell, Paolo Bonzini, kvm-devel, qemu-arm

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
timer events which are only available from kernel space.

This patch set leverages the new kernel/user space pending line synchronization
for those timer events.

rfc1 -> rfc2:

  - use local variable for ARM_CPU
  - remove bear trap
  - move timer warning to gic device

Alexander Graf (2):
  linux-headers: update
  ARM: KVM: Enable in-kernel timers with user space gic

 hw/intc/arm_gic.c             |  7 +++++++
 include/sysemu/kvm.h          | 11 +++++++++++
 kvm-all.c                     |  5 +++++
 kvm-stub.c                    |  5 +++++
 linux-headers/asm-arm/kvm.h   |  1 +
 linux-headers/asm-arm64/kvm.h |  1 +
 linux-headers/linux/kvm.h     |  6 ++++++
 target-arm/cpu.h              |  3 +++
 target-arm/kvm.c              | 20 ++++++++++++++++++++
 9 files changed, 59 insertions(+)

-- 
1.8.5.6

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-06-27 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 14:32 [Qemu-devel] [PATCH RFC v2 0/2] Enable cp15 timers with user space gic & kvm Alexander Graf
2016-11-14 14:32 ` [Qemu-devel] [PATCH RFC v2 1/2] linux-headers: update Alexander Graf
2016-11-14 14:32 ` [Qemu-devel] [PATCH RFC v2 2/2] ARM: KVM: Enable in-kernel timers with user space gic Alexander Graf
2016-12-13 13:20   ` Peter Maydell
2017-06-26 15:03     ` Andrew Jones
2017-06-26 21:32       ` Alexander Graf
2017-06-27 12:40         ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).