public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Janosch Frank <frankja@linux.ibm.com>
To: Nico Boehr <nrb@linux.ibm.com>,
	imbrenda@linux.ibm.com, thuth@redhat.com, hca@linux.ibm.com
Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH v8 5/8] s390x: lib: sie: don't reenter SIE on pgm int
Date: Tue, 7 Nov 2023 13:34:10 +0100	[thread overview]
Message-ID: <98e54486-62c9-4c00-9e16-29952fd413cd@linux.ibm.com> (raw)
In-Reply-To: <20231106163738.1116942-6-nrb@linux.ibm.com>

On 11/6/23 17:37, Nico Boehr wrote:
> At the moment, when a PGM int occurs while in SIE, we will just reenter
> SIE after the interrupt handler was called.
> 
> This is because sie() has a loop which checks icptcode and re-enters SIE
> if it is zero.
> 
> However, this behaviour is quite undesirable for SIE tests, since it
> doesn't give the host the chance to assert on the PGM int. Instead, we
> will just re-enter SIE, on nullifing conditions even causing the
> exception again.
> 
> In sie(), check whether a pgm int code is set in lowcore. If it has,
> exit the loop so the test can react to the interrupt. Add a new function
> read_pgm_int_code() to obtain the interrupt code.
> 
> Note that this introduces a slight oddity with sie and pgm int in
> certain cases: If a PGM int occurs between a expect_pgm_int() and sie(),
> we will now never enter SIE until the pgm_int_code is cleared by e.g.
> clear_pgm_int().
> 
> Also add missing include of facility.h to mem.h.
> 
> Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>


Reviewed-by: Janosch Frank <frankja@linux.ibm.com>


  reply	other threads:[~2023-11-07 12:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-06 16:37 [kvm-unit-tests PATCH v8 0/8] s390x: Add support for running guests without MSO/MSL Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 1/8] lib: s390x: introduce bitfield for PSW mask Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 2/8] s390x: add function to set DAT mode for all interrupts Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 3/8] s390x: sie: switch to home space mode before entering SIE Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 4/8] s390x: lib: don't forward PSW when handling exception in SIE Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 5/8] s390x: lib: sie: don't reenter SIE on pgm int Nico Boehr
2023-11-07 12:34   ` Janosch Frank [this message]
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 6/8] s390x: add test source dir to include paths Nico Boehr
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 7/8] s390x: add a test for SIE without MSO/MSL Nico Boehr
2023-11-06 16:48   ` Claudio Imbrenda
2023-11-07 12:48   ` Janosch Frank
2023-11-06 16:37 ` [kvm-unit-tests PATCH v8 8/8] lib: s390x: interrupt: remove TEID_ASCE defines Nico Boehr

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=98e54486-62c9-4c00-9e16-29952fd413cd@linux.ibm.com \
    --to=frankja@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nrb@linux.ibm.com \
    --cc=thuth@redhat.com \
    /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