public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Schlameuss <schlameuss@linux.ibm.com>
To: Janosch Frank <frankja@linux.ibm.com>
Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	Paolo Bonzini <pbonzini@redhat.com>,
	Shuah Khan <shuah@kernel.org>,
	Christian Borntraeger <borntraeger@linux.ibm.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>,
	David Hildenbrand <david@redhat.com>,
	Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Subject: Re: [PATCH v3 07/10] selftests: kvm: s390: Add uc_map_unmap VM test case
Date: Thu, 1 Aug 2024 17:06:15 +0200	[thread overview]
Message-ID: <20240801170615.7ae660b8.schlameuss@linux.ibm.com> (raw)
In-Reply-To: <0b323867-a2f8-4bae-9f33-02ecf8362a13@linux.ibm.com>

On Thu, 1 Aug 2024 11:08:30 +0200
Janosch Frank <frankja@linux.ibm.com> wrote:

> On 7/30/24 9:24 AM, Christoph Schlameuss wrote:
> > Add a test case verifying basic running and interaction of ucontrol VMs.
> > Fill the segment and page tables for allocated memory and map memory on
> > first access.
> > 
> > * uc_map_unmap
> >    Store and load data to mapped and unmapped memory and use pic segment
> >    translation handling to map memory on access.
> > 
> > Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
> > ---
> >   .../selftests/kvm/s390x/ucontrol_test.c       | 165 +++++++++++++++++-
> >   1 file changed, 164 insertions(+), 1 deletion(-)
> > 
> > diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x/ucontrol_test.c
> > index 817b1e08559c..b7f760f980fd 100644
> > --- a/tools/testing/selftests/kvm/s390x/ucontrol_test.c
> > +++ b/tools/testing/selftests/kvm/s390x/ucontrol_test.c
> > @@ -16,7 +16,13 @@
> >   #include <linux/capability.h>
> >   #include <linux/sizes.h>
> >   
> > +#define UC_PIC_SEGMENT_TRANSLATION 0x10  
> 
> That's a bit clearer and used by KVM:
> #define PGM_SEGMENT_TRANSLATION		0x10
> 

I will rename the constant here. (The original constant is defined in
kvm_host.h which is not pulled into the userspace selftests.)
Also since this is only used here so far and does not really fit into
processor.h or sie.h, I would leave that here for now.

[...]

> > @@ -245,7 +338,11 @@ static bool uc_handle_sieic(FIXTURE_DATA(uc_kvm) * self)
> >   		break;
> >   	case ICPT_INST:
> >   		/* end execution in caller on intercepted instruction */
> > +		pr_info("sie instruction interception\n");  
> 
> That should have been part of an earlier patch?
> 

Yes, on closer observation this is actually already needed in patch 6:
"selftests: kvm: s390: Add VM run test case".

I will also make sure all patches do run on its own again before
sending the next version.

Good catch, thank you.

[...]

I will also fix up the comments as advised.

Christoph

  reply	other threads:[~2024-08-01 15:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30  7:24 [PATCH v3 00/10] selftests: kvm: s390: Add s390x ucontrol selftests Christoph Schlameuss
2024-07-30  7:24 ` [PATCH v3 01/10] selftests: kvm: s390: Define page sizes in shared header Christoph Schlameuss
2024-07-30  7:24 ` [PATCH v3 02/10] selftests: kvm: s390: Add kvm_s390_sie_block definition for userspace tests Christoph Schlameuss
2024-07-30 12:04   ` Janosch Frank
2024-07-30  7:24 ` [PATCH v3 03/10] selftests: kvm: s390: Add s390x ucontrol test suite with hpage test Christoph Schlameuss
2024-07-30 13:14   ` Janosch Frank
2024-07-30  7:24 ` [PATCH v3 04/10] selftests: kvm: s390: Add test fixture and simple VM setup tests Christoph Schlameuss
2024-07-30  7:24 ` [PATCH v3 05/10] selftests: kvm: s390: Add debug print functions Christoph Schlameuss
2024-08-01  8:44   ` Janosch Frank
2024-07-30  7:24 ` [PATCH v3 06/10] selftests: kvm: s390: Add VM run test case Christoph Schlameuss
2024-07-31 14:37   ` Janosch Frank
2024-08-01  7:05     ` Christoph Schlameuss
2024-07-30  7:24 ` [PATCH v3 07/10] selftests: kvm: s390: Add uc_map_unmap VM " Christoph Schlameuss
2024-08-01  9:08   ` Janosch Frank
2024-08-01 15:06     ` Christoph Schlameuss [this message]
2024-07-30  7:24 ` [PATCH v3 08/10] selftests: kvm: s390: Add uc_skey " Christoph Schlameuss
2024-07-30  7:24 ` [PATCH v3 09/10] selftests: kvm: s390: Verify reject memory region operations for ucontrol VMs Christoph Schlameuss
2024-08-01  9:11   ` Janosch Frank
2024-07-30  7:24 ` [PATCH v3 10/10] s390: Enable KVM_S390_UCONTROL config in debug_defconfig Christoph Schlameuss
2024-08-01 10:40   ` Janosch Frank

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=20240801170615.7ae660b8.schlameuss@linux.ibm.com \
    --to=schlameuss@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nsg@linux.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=shuah@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