Re: [RFC PATCH 2/4] spapr: Add a nested state struct

2023-05-12 Thread Nicholas Piggin
On Fri May 5, 2023 at 8:54 PM AEST, Harsh Prateek Bora wrote: > > > On 5/3/23 06:09, Nicholas Piggin wrote: > > @@ -1593,12 +1713,14 @@ static target_ulong h_enter_nested(PowerPCCPU *cpu, > > return H_PARAMETER; > > } > > > > -spapr_cpu->nested_host_state = g_try_new(CPUPPCS

Re: [RFC PATCH 2/4] spapr: Add a nested state struct

2023-05-05 Thread Harsh Prateek Bora
On 5/3/23 06:09, Nicholas Piggin wrote: Rather than use a copy of CPUPPCState to store the host state while the environment has been switched to the L2, use a new struct for this purpose. Have helper functions to save and load this host state. Signed-off-by: Nicholas Piggin --- hw/ppc/spap

[RFC PATCH 2/4] spapr: Add a nested state struct

2023-05-02 Thread Nicholas Piggin
Rather than use a copy of CPUPPCState to store the host state while the environment has been switched to the L2, use a new struct for this purpose. Have helper functions to save and load this host state. Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_hcall.c| 164 ++