spapr: nested: keep nested-hv related code restricted to its API.
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Fri, 8 Mar 2024 11:19:30 +0000 (16:49 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (02:47 +1000)
commit21a8d22f58b7e8eb70f5cf48ba119d7865a37fc0
treedaf54335ac93a26cf815fe3d4d73ddaeb26bdcf0
parent1331d0acc76662bd423cb06db23cf0083da695e0
spapr: nested: keep nested-hv related code restricted to its API.

spapr_exit_nested and spapr_get_pate_nested_hv contains code which
is specific to nested-hv API. Isolating code flows based on API
helps extending it to be used with different API as well.

Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/spapr.c
hw/ppc/spapr_nested.c
include/hw/ppc/spapr_nested.h