Skip to content

rework the ICS classes inheritance tree

Cédric Le Goater qemu-devel 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 10 repliesApplied
  2. v12 patches 3 repliesApplied

Changes since v2 from the cover letter

- split the patch in smaller units. The migration tests were not rerun because the code is very much the same. make check was run on each patch.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5ppc/xics: introduce a parent_realize in ICSStateClasshw/intc/xics.c hw/intc/xics_kvm.c include/hw/ppc/xics.h+39 -211 reply
2/5ppc/xics: move the instance_init handler under the ics-base classhw/intc/xics.c+8 -81 reply
3/5ppx/xics: introduce a parent_reset in ICSStateClasshw/intc/xics.c hw/intc/xics_kvm.c include/hw/ppc/xics.h+41 -311 reply
4/5ppc/xics: move the vmstate structures under the ics-base classhw/intc/xics.c+56 -561 reply
5/5ppc/xics: rework the ICS classes inheritance treehw/intc/xics_kvm.c hw/ppc/spapr.c+6 -81 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] rework the ICS classes inheritance tree

Hello,

It makes the class hierarchy much cleaner and removes duplicated code. As we are touching the location of the objects states, migration compatibility was checked and the following tests were performed under KVM :

  qemu-3.0 (pseries-3.0)   -> qemu-3.0  (pseries-3.0)   OK
  qemu-3.0 (pseries-2.12)  -> qemu-2.12 (pseries-2.12)  OK
  qemu-3.0 (pseries-2.11)  -> qemu-2.11 (pseries-2.11)  OK
  qemu-3.0 (pseries-2.10)  -> qemu-2.10 (pseries-2.10)  OK
  qemu-3.0 (pseries-2.9)   -> qemu-2.9  (pseries-2.9)   OK
  qemu-3.0 (pseries-2.8)   -> qemu-2.8  (pseries-2.8)   OK
  qemu-3.0 (pseries-2.7)   -> qemu-2.7  (pseries-2.7)   FAIL

and back :

  qemu-3.0 (pseries-3.0)  <-  qemu-3.0  (pseries-3.0)   OK
  qemu-3.0 (pseries-2.12) <-  qemu-2.12 (pseries-2.12)  OK
  qemu-3.0 (pseries-2.11) <-  qemu-2.11 (pseries-2.11)  OK
  qemu-3.0 (pseries-2.10) <-  qemu-2.10 (pseries-2.10)  OK
  qemu-3.0 (pseries-2.9)  <-  qemu-2.9  (pseries-2.9)   OK
  qemu-3.0 (pseries-2.8)  <-  qemu-2.8  (pseries-2.8)   OK
  qemu-3.0 (pseries-2.7)  <-  qemu-2.7  (pseries-2.7)   OK

under TCG, same scenarios were run but up to 2.10 only, in which case the migration fails for other reasons.

I wouldn't mind some extra cross checking from someone else.

Thanks,

C.

Changes since v2:

- split the patch in smaller units. The migration tests were not rerun because the code is very much the same. make check was run on each patch.

Cédric Le Goater (5):
ppc/xics: introduce a parent_realize in ICSStateClass ppc/xics: move the instance_init handler under the ics-base class ppx/xics: introduce a parent_reset in ICSStateClass ppc/xics: move the vmstate structures under the ics-base class ppc/xics: rework the ICS classes inheritance tree

 include/hw/ppc/xics.h |   4 +-
 hw/intc/xics.c        | 164 ++++++++++++++++++++++++++++----------------------
 hw/intc/xics_kvm.c    |  46 +++++++-------
 hw/ppc/spapr.c        |   2 +-
 4 files changed, 121 insertions(+), 95 deletions(-)
Signature · 1 line
2.13.6