Re: [PATCH v3 1/3] s390/cpacf: Rework cpacf_pcc() to return condition code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/04/2025 16:50, Harald Freudenberger wrote:
> Some of the pcc sub-functions have a protected key as
> input and thus may run into the situation that this
> key may be invalid for example due to live guest migration
> to another physical hardware.
> 
> Rework the inline assembler function cpacf_pcc() to
> return the condition code (cc) as return value:
>   0 - cc code 0 (normal completion)
>   1 - cc code 1 (prot key wkvp mismatch or src op out of range)
>   2 - cc code 2 (something invalid, scalar multiply infinity, ...)
> Note that cc 3 (partial completion) is handled within the asm code
> and never returned.
> 
> Signed-off-by: Harald Freudenberger <freude@xxxxxxxxxxxxx>

Reviewed-by: Holger Dengler <dengler@xxxxxxxxxxxxx>

-- 
Mit freundlichen Grüßen / Kind regards
Holger Dengler
--
IBM Systems, Linux on IBM Z Development
dengler@xxxxxxxxxxxxx





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux