public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Janosch Frank <frankja@linux.ibm.com>
To: Nico Boehr <nrb@linux.ibm.com>, kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, imbrenda@linux.ibm.com,
	thuth@redhat.com, david@redhat.com
Subject: Re: [kvm-unit-tests PATCH v3 1/9] s390x: uv-host: Fix UV init test memory allocation
Date: Wed, 10 May 2023 11:03:54 +0200	[thread overview]
Message-ID: <3b5cce0a-b344-be8a-7432-704fe9e84d8f@linux.ibm.com> (raw)
In-Reply-To: <168370871258.331309.6187452257634029708@t14-nrb>

On 5/10/23 10:51, Nico Boehr wrote:
> Quoting Janosch Frank (2023-05-02 15:07:24)
>> The init memory has to be above 2G and 1M aligned but we're currently
>> aligning on 2G which means the allocations need a lot of unused
>> memory.
> 
> I know I already gave my R-b here, but...
> 
>> diff --git a/s390x/uv-host.c b/s390x/uv-host.c
>> index 33e6eec6..9dfaebd7 100644
>> --- a/s390x/uv-host.c
>> +++ b/s390x/uv-host.c
>> @@ -500,14 +500,17 @@ static void test_config_create(void)
>>   static void test_init(void)
>>   {
>>          int rc;
>> -       uint64_t mem;
>> +       uint64_t tmp;
>>   
>> -       /* Donated storage needs to be over 2GB */
>> -       mem = (uint64_t)memalign_pages_flags(SZ_1M, uvcb_qui.uv_base_stor_len, AREA_NORMAL);
> 
> ...maybe out of coffee, but can you point me to the place where we're aligning
> to 2G here? I only see alignment to 1M and your change only seems to rename
> mem to tmp:
> 
>> +       /*
>> +        * Donated storage needs to be over 2GB, AREA_NORMAL does that
>> +        * on s390x.
>> +        */

This comment explains it :)
Its a re-name of mem to tmp and an extension of this comment so it makes 
more sense.

>> +       tmp = (uint64_t)memalign_pages_flags(SZ_1M, uvcb_qui.uv_base_stor_len, AREA_NORMAL);



  reply	other threads:[~2023-05-10  9:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02 13:07 [kvm-unit-tests PATCH v3 0/9] s390x: uv-host: Fixups and extensions part 1 Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 1/9] s390x: uv-host: Fix UV init test memory allocation Janosch Frank
2023-05-10  8:51   ` Nico Boehr
2023-05-10  9:03     ` Janosch Frank [this message]
2023-05-10 11:14       ` Nico Boehr
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 2/9] s390x: uv-host: Check for sufficient amount of memory Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 3/9] s390x: uv-host: Beautify code Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 4/9] s390x: uv-host: Add cpu number check Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 5/9] s390x: uv-host: Fix create guest variable storage prefix check Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 6/9] s390x: uv-host: Switch to smp_sigp Janosch Frank
2023-05-10  8:53   ` Nico Boehr
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 7/9] s390x: uv-host: Properly handle config creation errors Janosch Frank
2023-05-10 11:17   ` Nico Boehr
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 8/9] s390x: uv-host: Fence access checks when UV debug is enabled Janosch Frank
2023-05-02 13:07 ` [kvm-unit-tests PATCH v3 9/9] s390x: uv-host: Add the test to unittests.conf Janosch Frank
2023-05-10 11:25   ` Nico Boehr
2023-05-31 14:47 ` [kvm-unit-tests PATCH v3 0/9] s390x: uv-host: Fixups and extensions part 1 Nico Boehr
2023-06-02  8:10   ` 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=3b5cce0a-b344-be8a-7432-704fe9e84d8f@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=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