From: Janosch Frank <frankja@linux.ibm.com>
To: Christoph Schlameuss <schlameuss@linux.ibm.com>,
linux-s390@vger.kernel.org
Cc: David Hildenbrand <david@kernel.org>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Hendrik Brueckner <brueckner@linux.ibm.com>,
Nina Schoetterl-Glausch <nsg@linux.ibm.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] KVM: s390: vsie: Implement ASTFLEIE facility 2
Date: Wed, 22 Apr 2026 15:02:14 +0200 [thread overview]
Message-ID: <6a045fc5-e673-4b1a-945a-898a086026ed@linux.ibm.com> (raw)
In-Reply-To: <20260226-vsie-alter-stfle-fac-v2-4-914974cb922c@linux.ibm.com>
On 2/26/26 13:49, Christoph Schlameuss wrote:
> From: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
>
> Implement shadowing of format-2 facility list when running in VSIE.
>
> ASTFLEIE2 is available since IBM z16.
> To function G1 has to run this KVM code and G1 and G2 have to run QEMU
> with ASTFLEIE2 support.
>
> Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
> Co-developed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
> Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
> ---
> arch/s390/include/asm/kvm_host.h | 7 +++++++
> arch/s390/kvm/kvm-s390.c | 2 ++
> arch/s390/kvm/vsie.c | 34 ++++++++++++++++++++++++++++++----
> 3 files changed, 39 insertions(+), 4 deletions(-)
>
> diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h
> index 23d17700319a5ef2031eabcad34b6191d1ef9b21..89a797e436336b9671119d93b02f3b39b0ed45e6 100644
> --- a/arch/s390/include/asm/kvm_host.h
> +++ b/arch/s390/include/asm/kvm_host.h
> @@ -506,6 +506,13 @@ struct kvm_s390_cpu_model {
> struct kvm_s390_vm_cpu_uv_feat uv_feat_guest;
> };
>
> +#define S390_ARCH_FAC_FORMAT_2 2
> +struct kvm_s390_f2_flcb {
Time to bikeshed.
I think the format should be at the end and we should name it like we
named the apcbs.
kvm_s390_flcb2
[...]
> static_assert(sizeof(struct vsie_page) == PAGE_SIZE);
> @@ -999,6 +999,28 @@ static int handle_stfle_0(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page,
> return 0;
> }
>
> +static int handle_stfle_2(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page, u32 fac_list_origin)
> +{
> + struct kvm_s390_f2_flcb *flcb_s = (struct kvm_s390_f2_flcb *)vsie_page->fac;
> + struct kvm_s390_sie_block *scb_s = &vsie_page->scb_s;
> + u64 len;
> +
> + if (read_guest_real(vcpu, fac_list_origin, &len, sizeof(len)))
> + return set_validity_icpt(scb_s, 0x1090U);
> +
> + /* discard reserved bits */
> + len = (len & U8_MAX);
Was that the reason why we needed to include stddef.h?
I don't see functional problems.
prev parent reply other threads:[~2026-04-22 13:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 12:49 [PATCH v2 0/4] KVM: s390: vsie: Implement ASTFLEIE facility 2 Christoph Schlameuss
2026-02-26 12:49 ` [PATCH v2 1/4] KVM: s390: Minor refactor of base/ext facility lists Christoph Schlameuss
2026-02-26 12:49 ` [PATCH v2 2/4] s390/sclp: Detect ASTFLEIE 2 facility Christoph Schlameuss
2026-02-26 12:49 ` [PATCH v2 3/4] KVM: s390: vsie: Refactor handle_stfle Christoph Schlameuss
2026-04-22 12:51 ` Janosch Frank
2026-02-26 12:49 ` [PATCH v2 4/4] KVM: s390: vsie: Implement ASTFLEIE facility 2 Christoph Schlameuss
2026-04-22 13:02 ` Janosch Frank [this message]
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=6a045fc5-e673-4b1a-945a-898a086026ed@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=brueckner@linux.ibm.com \
--cc=david@kernel.org \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=nsg@linux.ibm.com \
--cc=schlameuss@linux.ibm.com \
--cc=svens@linux.ibm.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