From 293d69c37778e921567d78f3b8afb1162584696e Mon Sep 17 00:00:00 2001 From: Leonardo Bras Date: Fri, 3 Apr 2020 14:20:24 -0300 Subject: [PATCH] Virtualization: Add new return code to H_REGISTER_VPA: H_STATE Issue: (01/27/2020 05:41:56 PM) Update H_REGISTER_VPA to add H_STATE return code for VPA and SLB shadow buffer. Signed-off-by: Leonardo Bras --- Virtualization/ch_lpar_option.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Virtualization/ch_lpar_option.xml b/Virtualization/ch_lpar_option.xml index 88ac22a..2e8ca3c 100644 --- a/Virtualization/ch_lpar_option.xml +++ b/Virtualization/ch_lpar_option.xml @@ -13050,6 +13050,14 @@ hcall ( const uint64 H_GET_DMA_XLATES_LIMITED, /*Return I/O Bus and correspondin ready to run (interrupt or prod) + + If the subfunction is a Register VPA or a Deregister VPA or SLB + shadow buffer, verify that the proc-no parameter references an + offline virtual proc or that the proc-no parameter matches the + current virtual processor making the hcall, else return H_STATE + + + The old virtual processor exhausted its time slice (HDECR interrupt). @@ -13297,6 +13305,9 @@ hcall ( const uint64 H_GET_DMA_XLATES_LIMITED, /*Return I/O Bus and correspondin /* H_MLENGTH_PARM: For the CMO option, the requested area to */ /* be registered crossed a memory entitlement granule */ /* boundary */ + /* H_STATE: The proc-no parameter referenced a virtual */ + /* processor that was in an invalid state for registering */ + /* or deregistering the VPA or SLB shadow buffer */ hcall ( const unit64 H_REGISTER_VPA, /* Register the specified per virtual */ /* Processor Area */ uint64 flags /* The sub functions for this hcall() are encoded in bits */