RFC spapr: clean up nested hv
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | spapr: H_ENTER_NESTED should restore host XER ca fieldhw/ | +1 | 1 reply | |
| 2/4 | spapr: Add a nested state structhw/ include/ | +129 | 2 replies | |
| 3/4 | spapr: load and store l2 state with helper functionshw/ | +85 | 2 replies | |
| 4/4 | spapr: Move spapr nested HV to a new filehw/ hw/ hw/ +1 more | +499 | 2 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Harsh Prateek Bora |
|---|---|
| 1/4 | R-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.
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