From: Janosch Frank <frankja@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, imbrenda@linux.ibm.com,
thuth@redhat.com, david@redhat.com, nsg@linux.ibm.com,
nrb@linux.ibm.com
Subject: Re: [kvm-unit-tests PATCH v5 5/8] lib: s390x: uv: Add pv host requirement check function
Date: Tue, 20 Jun 2023 16:13:28 +0200 [thread overview]
Message-ID: <9d86e617-4e8f-da3d-0c79-e94df5f3f3a5@linux.ibm.com> (raw)
In-Reply-To: <20230619083329.22680-6-frankja@linux.ibm.com>
On 6/19/23 10:33, Janosch Frank wrote:
> When running PV guests some of the UV memory needs to be allocated
> with > 31 bit addresses which means tests with PV guests will always
> need a lot more memory than other tests.
> Additionally facilities nr 158 and sclp.sief2 need to be available.
>
> Let's add a function that checks for these requirements and prints a
> helpful skip message.
>
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
[...]
> +bool uv_host_requirement_checks(void)
> +{
> + if (!test_facility(158)) {
> + report_skip("UV Call facility unavailable");
> + return false;
> + }
> + if (!sclp_facilities.has_sief2) {
> + report_skip("SIEF2 facility unavailable");
> + return false;
> + }
> + if (get_ram_size() < SNIPPET_PV_MIN_MEM_SIZE) {
> + report_skip("Not enough memory. This test needs about %ld MB of memory",
> + SNIPPET_PV_MIN_MEM_SIZE / 1024 / 1024);
I've just replaced the 1024 divisions with SZ_1M i nthe second series.
Feel free to do that here when picking if I don't need to send a new
version.
next prev parent reply other threads:[~2023-06-20 14:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 8:33 [kvm-unit-tests PATCH v5 0/8] s390x: Add PV SIE intercepts and ipl tests Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 1/8] lib: s390x: sie: Fix sie_get_validity() no validity handling Janosch Frank
2023-06-20 15:12 ` Nico Boehr
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 2/8] lib: s390x: uv: Introduce UV validity function Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 3/8] lib: s390x: uv: Add intercept data check library function Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 4/8] s390x: pv-diags: Drop snippet from snippet names Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 5/8] lib: s390x: uv: Add pv host requirement check function Janosch Frank
2023-06-20 14:13 ` Janosch Frank [this message]
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 6/8] s390x: pv: Add sie entry intercept and validity test Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 7/8] s390x: pv: Add IPL reset tests Janosch Frank
2023-06-19 8:33 ` [kvm-unit-tests PATCH v5 8/8] s390x: pv-diags: Add the test to unittests.conf 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=9d86e617-4e8f-da3d-0c79-e94df5f3f3a5@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=david@redhat.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=nrb@linux.ibm.com \
--cc=nsg@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