Skip to content

RFC spapr: clean up nested hv

Nicholas Piggin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4spapr: H_ENTER_NESTED should restore host XER ca fieldhw/ppc/spapr_hcall.c+1 -01 reply
2/4spapr: Add a nested state structhw/ppc/spapr_hcall.c include/hw/ppc/spapr_cpu_core.h+129 -402 replies
3/4spapr: load and store l2 state with helper functionshw/ppc/spapr_hcall.c+85 -932 replies
4/4spapr: Move spapr nested HV to a new filehw/ppc/meson.build hw/ppc/spapr_hcall.c hw/ppc/spapr_nested.c +1 more+499 -4882 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchHarsh Prateek Bora
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] spapr: clean up nested hv

Something like this is the way I'd been wanting to refactor nested hv. The state load/store functions and data is (somewhat) abstracted, and the hcall interface remains in the hcall handlers.

If, hypothetically, you had a new flavour of nested enter hcall that had some other way of specifying the L2 state to load, then you would (hopefully) be able to extend and reuse the state struct and load/store helpers.

Thanks,
Nick

Nicholas Piggin (4):
spapr: H_ENTER_NESTED should restore host XER ca field
spapr: Add a nested state struct
spapr: load and store l2 state with helper functions
spapr: Move spapr nested HV to a new file

 hw/ppc/meson.build              |   1 +
 hw/ppc/spapr_hcall.c            | 348 +---------------------
 hw/ppc/spapr_nested.c           | 496 ++++++++++++++++++++++++++++++++
 include/hw/ppc/spapr.h          |  61 +---
 include/hw/ppc/spapr_cpu_core.h |   5 +-
 5 files changed, 502 insertions(+), 409 deletions(-)
 create mode 100644 hw/ppc/spapr_nested.c
Signature · 1 line
2.40.1