Skip to contentSkip to conversation

KVM: s390: allow to change the IAM clear strategy dynamically

PATCH Michael Mueller 1 participant 1 message Nov 30, 2018 1 message not in the archive s390

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 16 lines · Cornelia Huck
Quoted 13 lines · On Wed, 28 Nov 2018 11:19:43 +0100 Michael Mueller <[email protected]> wrote:

The sysctl file /proc/sys/s390/iam_clear_strategy defines under which condition the GISA IAM is cleared before entering the SIE in routine vcpu_pre_run().

The following IAM clear strategies are available:

0 : the mask is never cleared
1 : the mask is cleared if I/O interruptions are not
disabled by the PSW of the vcpu entering the SIE
2 : the mask is unconditionally cleared

The default IAM clear strategy after system boot is 0.

Quoted 7 lines
Quoted 4 lines

Set the new strategy by means of the sysctl command or write to the file.

   sysctl s390.iam_clear_strategy=1
   echo 2 >/proc/sys/s390/iam_clear_strategy

This wants some documentation, I think. How is the admin supposed to know which strategy to choose?

The patch will be dropped. The strategy will not be changeable by an admin. The IAM will never be cleared by the host program during normal operation except for the GISA clear and GISA drop cases.

Quoted 9 lines
Quoted 8 lines
---
  arch/s390/kvm/interrupt.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++
  arch/s390/kvm/kvm-s390.c  |  1 +
  arch/s390/kvm/kvm-s390.h  |  1 +
  3 files changed, 71 insertions(+)
Signature · 8 lines
Mit freundlichen Gr��en / Kind regards
Michael M�ller

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina K�deritz
Gesch�ftsf�hrung: Dirk Wittkopp
Sitz der Gesellschaft: B�blingen
Registergericht: Amtsgericht Stuttgart, HRB 243294