[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFCv2 2/6] s390x/diag: no need to check for PGM_PRIVILEGED in
From: |
Janosch Frank |
Subject: |
Re: [PATCH RFCv2 2/6] s390x/diag: no need to check for PGM_PRIVILEGED in diag308 |
Date: |
Wed, 15 Jul 2020 11:27:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 7/10/20 5:12 PM, David Hildenbrand wrote:
> Whenever we reach this point via KVM or TCG, we already verified that we
> are running in the supervisor state.
>
> TCG checks this via IF_PRIV, KVM checks this directly in the diag
> instruction handler, before exiting to userspace.
>
> Signed-off-by: David Hildenbrand <david@redhat.com>
I'm trusting you on the tcg part.
Acked-by: Janosch Frank <frankja@linux.ibm.com>
> ---
> target/s390x/diag.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/target/s390x/diag.c b/target/s390x/diag.c
> index 1a48429564..be70aecd72 100644
> --- a/target/s390x/diag.c
> +++ b/target/s390x/diag.c
> @@ -80,11 +80,6 @@ void handle_diag_308(CPUS390XState *env, uint64_t r1,
> uint64_t r3, uintptr_t ra)
> uint64_t subcode = env->regs[r3];
> IplParameterBlock *iplb;
>
> - if (env->psw.mask & PSW_MASK_PSTATE) {
> - s390_program_interrupt(env, PGM_PRIVILEGED, ra);
> - return;
> - }
> -
> if (subcode & ~0x0ffffULL) {
> s390_program_interrupt(env, PGM_SPECIFICATION, ra);
> return;
>
signature.asc
Description: OpenPGP digital signature
[PATCH RFCv2 5/6] s390x: implement virtio-mem-ccw, David Hildenbrand, 2020/07/10
[PATCH RFCv2 6/6] s390x: initial support for virtio-mem, David Hildenbrand, 2020/07/10