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

2023-06-14 Thread Nicholas Piggin
On Thu Jun 15, 2023 at 2:51 PM AEST, Harsh Prateek Bora wrote: > > > On 6/14/23 17:26, Nicholas Piggin wrote: > >>> @@ -1766,34 +1872,8 @@ void spapr_exit_nested(PowerPCCPU *cpu, int excp) > >>>address_space_unmap(CPU(cpu)->as, regs, len, len, true); > >>> > >>>out_restore_l1: > >>>

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

2023-06-14 Thread Harsh Prateek Bora
On 6/14/23 17:26, Nicholas Piggin wrote: On Fri Jun 9, 2023 at 5:09 PM AEST, Harsh Prateek Bora wrote: On 6/8/23 14:43, 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.

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

2023-06-14 Thread Nicholas Piggin
On Fri Jun 9, 2023 at 5:09 PM AEST, Harsh Prateek Bora wrote: > > > On 6/8/23 14:43, 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

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

2023-06-09 Thread Harsh Prateek Bora
On 6/8/23 14:43, 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/spa

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

2023-06-08 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| 150 ++