Re: [PATCH 3/5] ppc: spapr: assert early rather late in h_enter_nested()

2023-04-17 Thread Harsh Prateek Bora
On 4/14/23 17:25, Fabiano Rosas wrote: Harsh Prateek Bora writes: Currently, it asserts very late in the code flow if lpid is already initialized. That's not about initializing. It is about making sure the LPIDR is 0. Which has a specific meaning according to the ISA. Yes, I could rephra

Re: [PATCH 3/5] ppc: spapr: assert early rather late in h_enter_nested()

2023-04-14 Thread Fabiano Rosas
Harsh Prateek Bora writes: > Currently, it asserts very late in the code flow if lpid is already > initialized. That's not about initializing. It is about making sure the LPIDR is 0. Which has a specific meaning according to the ISA. > Ideally, it should assert in the beginning if that is the

[PATCH 3/5] ppc: spapr: assert early rather late in h_enter_nested()

2023-03-30 Thread Harsh Prateek Bora
Currently, it asserts very late in the code flow if lpid is already initialized. Ideally, it should assert in the beginning if that is the case. This patch brings assert check in the beginning alongwith the related initialization. Signed-off-by: Harsh Prateek Bora --- hw/ppc/spapr_hcall.c | 6 ++