From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: david@redhat.com, qemu-s390x@nongnu.org,
Claudio Fontana <cfontana@suse.de>
Subject: Re: [PATCH] target/s390x: Move trans_exc_code update to do_program_interrupt
Date: Mon, 31 Jul 2023 16:59:13 +0200 [thread overview]
Message-ID: <787d1fe5f42eed2561be7b9cbc4b20cebea836e7.camel@linux.ibm.com> (raw)
In-Reply-To: <2a9d2f15-4f1b-19c7-7feb-e8597c1c71e3@linaro.org>
On Mon, 2023-07-31 at 07:55 -0700, Richard Henderson wrote:
> On 7/31/23 01:26, Ilya Leoshkevich wrote:
> > > > + case PGM_PROTECTION:
> > > > + case PGM_TRANS_SPEC:
> > > > + assert(env->int_pgm_code == env->tlb_fill_exc);
> > > > + set_trans_exc_code = true;
> > > > + advance = true;
> > > > + break;
> > >
> > > These exceptions came from seeing an early kernel fault, grepping
> > > for
> > > the set of
> > > exceptions raised in mmu_helper.c, and eliminating PGM_ADDRESSING
> > > per
> > > the first hunk.
> >
> > Does POp specify that the CPU stores Translation-Exception
> > Identification on Translation-Specification Exceptions
> > (PGM_TRANS_SPEC)? I re-read the 0xA8 documentation a few times, but
> > could not find it.
>
> Neither could I.
>
> > It's also interesting what the kernel was attempting when it got
> > PGM_TRANS_SPEC and recovered from it. Maybe something else is
> > wrong?
>
> I think the kernel was testing PGM_PROTECTION, to see if LowCore
> protection worked.
>
> But since that one wasn't listed for 0xA8 either, I preserved
> previous behaviour in
> setting trans_exc_code for all mmu exceptions except for
> PGM_ADDRESSING.
>
>
> r~
Actually, PGM_PROTECTION is there. If you scroll a few pages down, you
will see: "Translation-Exception Identification for Protection
Exceptions". But nothing like this for PGM_TRANS_SPEC.
next prev parent reply other threads:[~2023-07-31 15:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 19:55 [PATCH] target/s390x: Move trans_exc_code update to do_program_interrupt Richard Henderson
2023-07-28 20:02 ` Richard Henderson
2023-07-31 8:26 ` Ilya Leoshkevich
2023-07-31 14:55 ` Richard Henderson
2023-07-31 14:59 ` Ilya Leoshkevich [this message]
2023-07-29 8:43 ` Claudio Fontana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=787d1fe5f42eed2561be7b9cbc4b20cebea836e7.camel@linux.ibm.com \
--to=iii@linux.ibm.com \
--cc=cfontana@suse.de \
--cc=david@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).