public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Janosch Frank <frankja@linux.ibm.com>
To: Nico Boehr <nrb@linux.ibm.com>, imbrenda@linux.ibm.com, thuth@redhat.com
Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH v6 7/8] s390x: add a test for SIE without MSO/MSL
Date: Tue, 5 Sep 2023 15:45:40 +0200	[thread overview]
Message-ID: <d6a62a3d-b15f-e1a7-c07e-00a599f5f041@linux.ibm.com> (raw)
In-Reply-To: <20230904082318.1465055-8-nrb@linux.ibm.com>

On 9/4/23 10:22, Nico Boehr wrote:
> Since we now have the ability to run guests without MSO/MSL, add a test
> to make sure this doesn't break.
> 
> Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
[...]
> diff --git a/s390x/snippets/c/sie-dat.c b/s390x/snippets/c/sie-dat.c
> new file mode 100644
> index 000000000000..f29887643df9
> --- /dev/null
> +++ b/s390x/snippets/c/sie-dat.c
> @@ -0,0 +1,54 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +/*
> + * Snippet used by the sie-dat.c test to verify paging without MSO/MSL
> + *
> + * Copyright (c) 2023 IBM Corp
> + *
> + * Authors:
> + *  Nico Boehr <nrb@linux.ibm.com>
> + */
> +#include <stddef.h>
> +#include <inttypes.h>
> +#include <string.h>
> +#include <asm-generic/page.h>

Please include libcflat.h and remove the standard library includes.

> +#include "sie-dat.h"
> +
[...]
> diff --git a/s390x/snippets/c/sie-dat.h b/s390x/snippets/c/sie-dat.h
> new file mode 100644
> index 000000000000..a3a1c38861fa
> --- /dev/null
> +++ b/s390x/snippets/c/sie-dat.h
> @@ -0,0 +1,5 @@
> +/* keep in sync with TEST_PAGE_COUNT in s390x/snippets/c/sie-dat.c */
> +#define GUEST_TEST_PAGE_COUNT 10
> +
> +/* keep in sync with TOTAL_PAGE_COUNT in s390x/snippets/c/sie-dat.c */
> +#define GUEST_TOTAL_PAGE_COUNT 256

You should remove the comments now that we can include this header in 
the test.

> diff --git a/s390x/unittests.cfg b/s390x/unittests.cfg
> index 68e119e4fcaa..184658ff7d8d 100644
> --- a/s390x/unittests.cfg
> +++ b/s390x/unittests.cfg
> @@ -247,3 +247,6 @@ file = topology.elf
>   [topology-2]
>   file = topology.elf
>   extra_params = -cpu max,ctop=on -smp sockets=31,cores=8,maxcpus=248  -append '-sockets 31 -cores 8'
> +
> +[sie-dat]
> +file = sie-dat.elf


  reply	other threads:[~2023-09-05 16:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-04  8:22 [kvm-unit-tests PATCH v6 0/8] s390x: Add support for running guests without MSO/MSL Nico Boehr
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 1/8] lib: s390x: introduce bitfield for PSW mask Nico Boehr
2023-09-04  9:49   ` Thomas Huth
2023-09-05 12:22   ` Janosch Frank
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 2/8] s390x: add function to set DAT mode for all interrupts Nico Boehr
2023-09-04  9:54   ` Thomas Huth
2023-09-05 12:26   ` Janosch Frank
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 3/8] s390x: sie: switch to home space mode before entering SIE Nico Boehr
2023-09-04  9:59   ` Thomas Huth
2023-09-04 11:07     ` Nico Boehr
2023-09-04 11:40       ` Thomas Huth
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 4/8] s390x: lib: don't forward PSW when handling exception in SIE Nico Boehr
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 5/8] s390x: lib: sie: don't reenter SIE on pgm int Nico Boehr
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 6/8] s390x: add test source dir to include paths Nico Boehr
2023-09-04 10:37   ` Thomas Huth
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 7/8] s390x: add a test for SIE without MSO/MSL Nico Boehr
2023-09-05 13:45   ` Janosch Frank [this message]
2023-09-04  8:22 ` [kvm-unit-tests PATCH v6 8/8] lib: s390x: interrupt: remove TEID_ASCE defines Nico Boehr
2023-09-04 10:39   ` Thomas Huth

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=d6a62a3d-b15f-e1a7-c07e-00a599f5f041@linux.ibm.com \
    --to=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nrb@linux.ibm.com \
    --cc=thuth@redhat.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