Skip to content

uq/master: Introduce basic irqchip support

Jan Kiszka kvm qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest18 patches 7 repliesIn review
  2. v718 patches 3 repliesSuperseded
  3. v618 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v516 patches43 repliesSuperseded
v415 patches16 repliesSuperseded
v316 patches2 repliesSuperseded

Changes in v8 from the cover letter

- rebased over uq/master
- fixed build issue of patch 16 with !CONFIG_KVM
- converted forgotten container_of to DO_UPCAST

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18msi: Generalize msix_supported to msi_supportedhw/msi.c hw/msi.h hw/msix.c +2 more+16 -90 replies
2/18kvm: Move kvmclock into hw/kvm folderMakefile.target configure hw/kvm/clock.c +2 more+6 -50 replies
3/18apic: Stop timer on resethw/apic.c+2 -00 replies
4/18apic: Inject external NMI events via LINT1cpus.c hw/apic.c hw/apic.h+13 -10 replies
5/18apic: Introduce apic_report_irq_deliveredhw/apic.c hw/apic.h trace-events+10 -40 replies
6/18apic: Factor out base class for KVM reuseMakefile.target hw/apic.c hw/apic.h +2 more+406 -2990 replies
7/18apic: Open-code timer save/restorehw/apic.c hw/apic_common.c hw/apic_internal.h+67 -200 replies
8/18i8259: Completely privatize PicStatehw/i8259.c hw/pc.h+14 -100 replies
9/18i8259: Factor out base class for KVM reuseMakefile.objs hw/i8259.c hw/i8259_common.c +1 more+254 -1290 replies
10/18ioapic: Drop post-load irr initializationhw/ioapic.c+0 -120 replies
11/18ioapic: Factor out base class for KVM reuseMakefile.target hw/ioapic.c hw/ioapic_common.c +1 more+218 -1150 replies
12/18memory: Introduce memory_region_init_reservationmemory.c memory.h+52 -00 replies
13/18kvm: Introduce core services for in-kernel irqchip supportkvm-all.c kvm.h target-i386/kvm.c+168 -00 replies
14/18kvm: x86: Establish IRQ0 override controlhw/pc.c kvm-all.c kvm-stub.c +3 more+14 -30 replies
15/18kvm: x86: Add user space part for in-kernel APICMakefile.target hw/kvm/apic.c hw/pc.c +2 more+191 -60 replies
16/18kvm: x86: Add user space part for in-kernel i8259Makefile.target hw/kvm/i8259.c hw/pc.h +1 more+178 -50 replies
17/18kvm: x86: Add user space part for in-kernel IOAPICMakefile.target hw/kvm/ioapic.c hw/pc_piix.c+129 -20 replies
18/18kvm: Activate in-kernel irqchip supportqemu-config.c qemu-options.hx+8 -17 replies

Reviews trailers per patch

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

Read the v8 thread

Cover letter [PATCH v8 00/18] uq/master: Introduce basic irqchip support

Changes in v8:
- rebased over uq/master
- fixed build issue of patch 16 with !CONFIG_KVM
- converted forgotten container_of to DO_UPCAST

You can pull this from

git://git.kiszka.org/qemu-kvm.git queues/kvm-irqchip

CC Lai Jiangshan <[email protected]>

Jan Kiszka (18):
msi: Generalize msix_supported to msi_supported
kvm: Move kvmclock into hw/kvm folder
apic: Stop timer on reset
apic: Inject external NMI events via LINT1
apic: Introduce apic_report_irq_delivered
apic: Factor out base class for KVM reuse
apic: Open-code timer save/restore
i8259: Completely privatize PicState
i8259: Factor out base class for KVM reuse
ioapic: Drop post-load irr initialization
ioapic: Factor out base class for KVM reuse
memory: Introduce memory_region_init_reservation
kvm: Introduce core services for in-kernel irqchip support
kvm: x86: Establish IRQ0 override control
kvm: x86: Add user space part for in-kernel APIC
kvm: x86: Add user space part for in-kernel i8259
kvm: x86: Add user space part for in-kernel IOAPIC
kvm: Activate in-kernel irqchip support

 Makefile.objs                  |    2 +-
 Makefile.target                |    6 +-
 configure                      |    1 +
 cpus.c                         |    6 +-
 hw/apic.c                      |  356 ++++++----------------------------------
 hw/apic.h                      |    1 +
 hw/apic_common.c               |  302 ++++++++++++++++++++++++++++++++++
 hw/apic_internal.h             |  115 +++++++++++++
 hw/i8259.c                     |  163 ++++--------------
 hw/i8259_common.c              |  147 +++++++++++++++++
 hw/i8259_internal.h            |   76 +++++++++
 hw/ioapic.c                    |  142 ++--------------
 hw/ioapic_common.c             |  104 ++++++++++++
 hw/ioapic_internal.h           |   97 +++++++++++
 hw/kvm/apic.c                  |  138 ++++++++++++++++
 hw/{kvmclock.c => kvm/clock.c} |    4 +-
 hw/{kvmclock.h => kvm/clock.h} |    0
 hw/kvm/i8259.c                 |  128 ++++++++++++++
 hw/kvm/ioapic.c                |  114 +++++++++++++
 hw/msi.c                       |    8 +
 hw/msi.h                       |    2 +
 hw/msix.c                      |    9 +-
 hw/msix.h                      |    2 -
 hw/pc.c                        |   20 ++-
 hw/pc.h                        |    8 +-
 hw/pc_piix.c                   |   69 +++++++-
 kvm-all.c                      |  154 +++++++++++++++++
 kvm-stub.c                     |    5 +
 kvm.h                          |   14 ++
 memory.c                       |   36 ++++
 memory.h                       |   16 ++
 qemu-config.c                  |    4 +
 qemu-options.hx                |    5 +-
 sysemu.h                       |    1 -
 target-i386/kvm.c              |   49 ++++++
 trace-events                   |    2 +-
 vl.c                           |    1 -
 37 files changed, 1716 insertions(+), 591 deletions(-)
 create mode 100644 hw/apic_common.c
 create mode 100644 hw/apic_internal.h
 create mode 100644 hw/i8259_common.c
 create mode 100644 hw/i8259_internal.h
 create mode 100644 hw/ioapic_common.c
 create mode 100644 hw/ioapic_internal.h
 create mode 100644 hw/kvm/apic.c
 rename hw/{kvmclock.c => kvm/clock.c} (98%)
 rename hw/{kvmclock.h => kvm/clock.h} (100%)
 create mode 100644 hw/kvm/i8259.c
 create mode 100644 hw/kvm/ioapic.c
Signature · 1 line
1.7.3.4