spapr: nested: Introduce H_GUEST_[GET|SET]_STATE hcalls.
commit64c43909b29765f415c4bfe3e38f113252894277
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Fri, 8 Mar 2024 11:19:37 +0000 (8 16:49 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (13 02:47 +1000)
tree8c04409279f87b253ad8adb858425bd43c78e32c
parent4a575f9a0567f72df4addba23a857eefc2488258
spapr: nested: Introduce H_GUEST_[GET|SET]_STATE hcalls.

Introduce the nested PAPR hcalls:
    - H_GUEST_GET_STATE which is used to get state of a nested guest or
      a guest VCPU. The value field for each element in the request is
      destination to be updated to reflect current state on success.
    - H_GUEST_SET_STATE which is used to modify the state of a guest or
      a guest VCPU. On success, guest (or its VCPU) state shall be
      updated as per the value field for the requested element(s).

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