Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@linux.ibm.com>
To: Gautam Gala <ggala@linux.ibm.com>,
	kvm@vger.kernel.org, linux-s390@vger.kernel.org
Cc: 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, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 0/2] KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt
Date: Mon, 23 Nov 2026 14:03:44 +0100	[thread overview]
Message-ID: <e53eaebd-c646-4d0e-841d-85ee7e7997d6@linux.ibm.com> (raw)
In-Reply-To: <20261119124936.33396-1-ggala@linux.ibm.com>



Am 19.11.26 um 13:49 schrieb Gautam Gala:
> 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
> 

thanks applied.

      parent reply	other threads:[~2026-11-23 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 12:49 [PATCH v1 0/2] KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt Gautam Gala
2026-11-19 12:49 ` [PATCH v1 1/2] " Gautam Gala
2026-11-19 12:49 ` [PATCH v1 2/2] KVM: s390: selftests: Add vsie validity interception tests Gautam Gala
2026-11-23 13:03 ` Christian Borntraeger [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=e53eaebd-c646-4d0e-841d-85ee7e7997d6@linux.ibm.com \
    --to=borntraeger@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=frankja@linux.ibm.com \
    --cc=ggala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox