Skip to content

xics: reworks and in-kernel support

Alexey Kardashevskiy qemu-devel 5 versions – Applied

Status from this message: Thanks, applied to ppc-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 6 repliesApplied
  2. v412 patches 7 repliesSuperseded
  3. v36 of 8 patches 27 repliesApplied
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches17 repliesSuperseded
v14 patches12 repliesSuperseded

Changes in v5 from the cover letter

Rebased onto upstream;
Put few "reviewed-by: Andreas";
Added IRQFD enablement patches.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/14target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKENtarget-ppc/kvm.c target-ppc/kvm_ppc.h+21 -01 reply
2/14xics: move reset and cpu_setuphw/intc/xics.c+36 -361 reply
3/14spapr: move cpu_setup after kvmppc_set_paprhw/ppc/spapr.c+2 -21 reply
4/14xics: replace fprintf with error_reporthw/intc/xics.c+3 -21 reply
5/14xics: add pre_save/post_load dispatchershw/intc/xics.c include/hw/ppc/xics.h+79 -31 reply
6/14xics: convert init() to realize()hw/intc/xics.c+22 -60 replies
7/14xics: add missing const specifiers to TypeInfohw/intc/xics.c+2 -20 replies
8/14xics: split to xics and xics-commonhw/intc/xics.c hw/ppc/spapr.c include/hw/ppc/xics.h+157 -210 replies
9/14xics: add cpu_setup callbackhw/intc/xics.c include/hw/ppc/xics.h+6 -00 replies
10/14xics-kvm: Support for in-kernel XICS interrupt controllerdefault-configs/ppc64-softmmu.mak hw/intc/Makefile.objs hw/intc/xics_kvm.c +2 more+520 -10 replies
11/14xics: Implement H_IPOLLhw/intc/xics.c+13 -00 replies
12/14xics: Implement H_XIRR_Xhw/intc/xics.c include/hw/ppc/spapr.h+15 -00 replies
13/14xics-kvm: enable irqfd for MSIhw/intc/xics_kvm.c+6 -00 replies
14/14spapr-pci: enable irqfd for INTxhw/ppc/spapr_pci.c+13 -00 replies

Reviews trailers per patch

10 of 14 patches have a Reviewed-by or Acked-by.

PatchAlexander GrafAndreas FärberDavid Gibson
1/14A-b
2/14A-b
3/14A-b
4/14R-b A-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14
10/14R-b
11/14A-b
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 00/14] xics: reworks and in-kernel support

Yet another try with XICS and XICS-KVM.

v4->v5:
Rebased onto upstream;
Put few "reviewed-by: Andreas";
Added IRQFD enablement patches.

v3->v4:
Addressed multiple comments from Alex;
Split out many tiny patches to make them easier to review; Fixed xics_cpu_setup not to call the parent;
And many, many small changes.

v2->v3:
Addressed multiple comments from Andreas;
Added 2 patches for XICS from Ben - I included them into the series as they are about XICS and they won't rebase automatically if moved before XICS rework so it seemed to me that it would be better to carry them toghether. If it is wrong, please let me know, I'll repost them separately.

v1->v2:
The main change is this adds "xics-common" parent for emulated XICS and XICS-KVM. And many, many small changes, mostly to address Andreas comments.

Migration from XICS to XICS-KVM and vice versa still works.

Alexey Kardashevskiy (10):
xics: move reset and cpu_setup
spapr: move cpu_setup after kvmppc_set_papr
xics: replace fprintf with error_report
xics: add pre_save/post_load dispatchers
xics: convert init() to realize()
xics: add missing const specifiers to TypeInfo
xics: split to xics and xics-common
xics: add cpu_setup callback
xics-kvm: enable irqfd for MSI
spapr-pci: enable irqfd for INTx

Benjamin Herrenschmidt (2):
xics: Implement H_IPOLL
xics: Implement H_XIRR_X

David Gibson (2):
target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN
xics-kvm: Support for in-kernel XICS interrupt controller

 default-configs/ppc64-softmmu.mak |   1 +
 hw/intc/Makefile.objs             |   1 +
 hw/intc/xics.c                    | 331 ++++++++++++++++++++-----
 hw/intc/xics_kvm.c                | 494 ++++++++++++++++++++++++++++++++++++++
 hw/ppc/spapr.c                    |  27 ++-
 hw/ppc/spapr_pci.c                |  13 +
 include/hw/ppc/spapr.h            |   1 +
 include/hw/ppc/xics.h             |  57 +++++
 target-ppc/kvm.c                  |  14 ++
 target-ppc/kvm_ppc.h              |   7 +
 10 files changed, 884 insertions(+), 62 deletions(-)
 create mode 100644 hw/intc/xics_kvm.c
Signature · 1 line
1.8.4.rc4