[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] s390/sclp: improve special wait psw logic
From: |
Janosch Frank |
Subject: |
Re: [PATCH] s390/sclp: improve special wait psw logic |
Date: |
Thu, 20 Feb 2020 14:47:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 2/20/20 2:16 PM, Christian Borntraeger wrote:
> There is a special quiesce PSW that we check for "shutdown". Otherwise
> disabled
> wait is detected as "crashed". Architecturally we must only check PSW bits
> 116-127. Fix this.
>
> Cc: address@hidden
> Signed-off-by: Christian Borntraeger <address@hidden>
Acked-by: Janosch Frank <address@hidden>
> ---
> target/s390x/helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/s390x/helper.c b/target/s390x/helper.c
> index a3a4916..6808dfd 100644
> --- a/target/s390x/helper.c
> +++ b/target/s390x/helper.c
> @@ -89,7 +89,7 @@ hwaddr s390_cpu_get_phys_addr_debug(CPUState *cs, vaddr
> vaddr)
> static inline bool is_special_wait_psw(uint64_t psw_addr)
> {
> /* signal quiesce */
> - return psw_addr == 0xfffUL;
> + return (psw_addr & 0xfffUL) == 0xfffUL;
> }
>
> void s390_handle_wait(S390CPU *cpu)
>
signature.asc
Description: OpenPGP digital signature