From: Gautam Gala <ggala@linux.ibm.com>
To: kvm@vger.kernel.org, linux-s390@vger.kernel.org
Cc: borntraeger@linux.ibm.com, frankja@linux.ibm.com,
imbrenda@linux.ibm.com, david@kernel.org, hca@linux.ibm.com,
gor@linux.ibm.com, agordeev@linux.ibm.com, svens@linux.ibm.com,
pbonzini@redhat.com, seanjc@google.com, shuah@kernel.org,
ggala@linux.ibm.com, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v1 0/2] KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt
Date: Thu, 19 Nov 2026 13:49:34 +0100 [thread overview]
Message-ID: <20261119124936.33396-1-ggala@linux.ibm.com> (raw)
If prepare_cpuflags() rejects the SCB provided by guest 2 with a
validity interception, shadow_scb() still calls unshadow_scb(). That
copies the guest state from the shadow SCB back into the guest 2 SCB,
although the shadow SCB does not hold guest 3 state at that point. Guest
2 then sees its guest 3 state overwritten with zeroes (new or recycled
vsie page) or with the state of the previous run (cached vsie page),
without guest 3 having run.
Patch 1 copies back only the interception data in this case and clears
the stale interception data (icptstatus, ipa, ipb) when a shadow SCB is
reused.
Patch 2 adds a selftest for early and late validity interceptions.
Gautam Gala (2):
KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt
KVM: s390: selftests: Add vsie validity interception tests
arch/s390/kvm/s390/vsie.c | 24 +-
tools/testing/selftests/kvm/Makefile.kvm | 1 +
.../selftests/kvm/s390/vsie_validity_test.c | 435 ++++++++++++++++++
3 files changed, 453 insertions(+), 7 deletions(-)
create mode 100644 tools/testing/selftests/kvm/s390/vsie_validity_test.c
--
2.56.0
next reply other threads:[~2026-11-19 12:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 12:49 Gautam Gala [this message]
2026-11-19 12:49 ` [PATCH v1 1/2] KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt Gautam Gala
2026-11-19 12:55 ` sashiko-bot
2026-11-19 12:49 ` [PATCH v1 2/2] KVM: s390: selftests: Add vsie validity interception tests Gautam Gala
2026-11-19 12:58 ` sashiko-bot
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=20261119124936.33396-1-ggala@linux.ibm.com \
--to=ggala@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=david@kernel.org \
--cc=frankja@linux.ibm.com \
--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-kselftest@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=shuah@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.