Skip to content

RFC run hpet on a dedicated thread

Liu Ping Fan qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5irq: introduce route method in IRQState to get gsihw/core/irq.c include/hw/irq.h+44 -00 replies
2/5irq: implement route method of ioapichw/core/qdev.c hw/i386/kvm/i8259.c hw/i386/kvm/ioapic.c +3 more+40 -40 replies
3/5irqfd: equip irqfd with polarityhw/misc/vfio.c hw/virtio/virtio-pci.c include/sysemu/kvm.h +2 more+16 -100 replies
4/5hpet: deliver irq by irqfd when in dedicated thread modehw/timer/hpet.c+50 -40 replies
5/5hpet: run on dedicate threadhw/timer/hpet.c+30 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/5] run hpet on a dedicated thread

Nowadays, we run hpet on iothread. But there are so many undetermined jobs on iothread. It will heavily affect the accuracy of hpet's timing. When running on a dedicated thread, the accuracy of timing is only determined by scheduler. which is more fixed.

This series depend on the thread-safe patches for timers. And it is just for discussion. And code is premature.

Liu Ping Fan (5):
irq: introduce route method in IRQState to get gsi
irq: implement route method of ioapic
irqfd: equip irqfd with polarity
hpet: deliver irq by irqfd when in dedicated thread mode
hpet: run on dedicate thread

 hw/core/irq.c             | 39 ++++++++++++++++++++++
 hw/core/qdev.c            |  8 +++++
 hw/i386/kvm/i8259.c       |  8 ++++-
 hw/i386/kvm/ioapic.c      | 21 +++++++++++-
 hw/i386/pc_q35.c          |  4 +--
 hw/misc/vfio.c            |  4 +--
 hw/timer/hpet.c           | 85 ++++++++++++++++++++++++++++++++++++++++++++---
 hw/virtio/virtio-pci.c    |  2 +-
 include/hw/irq.h          |  5 +++
 include/hw/qdev-core.h    |  2 ++
 include/sysemu/kvm.h      |  4 ++-
 kvm-all.c                 | 14 ++++----
 linux-headers/linux/kvm.h |  3 ++
 13 files changed, 180 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.1.4