From: Eric Farman <farman@linux.ibm.com>
To: Christian Borntraeger <borntraeger@linux.ibm.com>,
Janosch Frank <frankja@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
David Hildenbrand <david@kernel.org>
Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH v2 0/3] KVM: s390: Toggle operation exception for userspace
Date: Fri, 08 May 2026 09:08:14 -0400 [thread overview]
Message-ID: <66f7c47f9931bfc9be47c7f6d02861bd3f3f37e8.camel@linux.ibm.com> (raw)
In-Reply-To: <1ac58dd8-1b06-42b5-9a19-67620b4fdc25@linux.ibm.com>
On Fri, 2026-05-08 at 12:07 +0200, Christian Borntraeger wrote:
> Am 07.05.26 um 22:08 schrieb Eric Farman:
> > Claudio, et al,
> >
> > Here's an update to the USER_OPEREXEC patch I'd sent the other day.
> > Besides the addition of Claudio's r-b (thank you!), Patch 1 is identical.
> >
> > Patch 2 contains a couple of new selftests. As it stands, they all run
> > with patch 1 applied, but I put the failing test at the end for if
> > Patch 1 is missing.
> >
> > Patch 3 is unrelated, but is a minor typo I stumbled on yesterday while
> > looking at this. It seems small enough that a second `git send-email`
> > command seems unnecessary. :)
> >
> > Eric Farman (3):
> > KVM: s390: Toggle operation exception for userspace
> > KVM: s390: selftests: Extended user_operexec tests
> > KVM: s390: Fix typo in UCONTROL documentation
> >
> > Documentation/virt/kvm/api.rst | 2 +-
> > arch/s390/kvm/kvm-s390.c | 3 +-
> > .../selftests/kvm/include/s390/facility.h | 6 +
> > .../selftests/kvm/s390/user_operexec.c | 110 ++++++++++++++++++
> > 4 files changed, 119 insertions(+), 2 deletions(-)
> >
>
> Independent from this series (which makes sense on its own)
> shouldnt we add another fixup so that we send these kernel injects also to userspace?
>
Hrm, that's a reasonable idea for the ones in priv.c (intercept.c are already covered, see below).
I'll see if I can find a way to unify (and test) them.
>
> git grep PGM_OPERATION linux/master arch/s390/kvm/
> linux/master:arch/s390/kvm/intercept.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
This is handle_sthyi(), called by handle_operexc(), if stfle.74 is not present.
> linux/master:arch/s390/kvm/intercept.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
This is handle_operexc(), if neither user_instr0 nor user_operexec are present.
> linux/master:arch/s390/kvm/priv.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
> linux/master:arch/s390/kvm/priv.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
> linux/master:arch/s390/kvm/priv.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
> linux/master:arch/s390/kvm/priv.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION);
> linux/master:arch/s390/kvm/priv.c: return kvm_s390_inject_program_int(vcpu, PGM_OPERATION)
next prev parent reply other threads:[~2026-05-08 13:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 20:08 [PATCH v2 0/3] KVM: s390: Toggle operation exception for userspace Eric Farman
2026-05-07 20:08 ` [PATCH v2 1/3] " Eric Farman
2026-05-08 9:54 ` Christian Borntraeger
2026-05-11 8:01 ` Janosch Frank
2026-05-11 8:08 ` Janosch Frank
2026-05-11 12:56 ` Eric Farman
2026-05-07 20:08 ` [PATCH v2 2/3] KVM: s390: selftests: Extended user_operexec tests Eric Farman
2026-05-08 10:05 ` Christian Borntraeger
2026-05-08 10:30 ` Claudio Imbrenda
2026-05-11 8:04 ` Janosch Frank
2026-05-07 20:08 ` [PATCH v2 3/3] KVM: s390: Fix typo in UCONTROL documentation Eric Farman
2026-05-08 10:29 ` Claudio Imbrenda
2026-05-11 10:59 ` Hendrik Brueckner
2026-05-08 10:07 ` [PATCH v2 0/3] KVM: s390: Toggle operation exception for userspace Christian Borntraeger
2026-05-08 13:08 ` Eric Farman [this message]
2026-05-08 14:50 ` Christian Borntraeger
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=66f7c47f9931bfc9be47c7f6d02861bd3f3f37e8.camel@linux.ibm.com \
--to=farman@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=david@kernel.org \
--cc=frankja@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.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