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>, kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, imbrenda@linux.ibm.com,
	borntraeger@linux.ibm.com
Subject: Re: [kvm-unit-tests 1/5] lib: s390x: Add function to get page root
Date: Wed, 15 Apr 2026 14:01:20 +0200	[thread overview]
Message-ID: <6a682f41-46f9-4727-8611-4aa461a9c1d4@linux.ibm.com> (raw)
In-Reply-To: <DHTPHNBLDSL0.1T802QN87CWQC@linux.ibm.com>

On 4/15/26 13:53, Nico Boehr wrote:
> On Wed Apr 15, 2026 at 10:45 AM CEST, Janosch Frank wrote:
> [...]
>> diff --git a/lib/s390x/mmu.h b/lib/s390x/mmu.h
>> index dadc2e60..6ba19d28 100644
>> --- a/lib/s390x/mmu.h
>> +++ b/lib/s390x/mmu.h
>> @@ -10,6 +10,8 @@
>>   #ifndef _S390X_MMU_H_
>>   #define _S390X_MMU_H_
>>   
>> +#include <asm/arch_def.h>
>> +
>>   enum pgt_level {
>>   	pgtable_level_pgd = 1,
>>   	pgtable_level_p4d,
>> @@ -95,4 +97,9 @@ static inline void unprotect_page(void *vaddr, unsigned long prot)
>>   
>>   void *get_dat_entry(pgd_t *pgtable, void *vaddr, enum pgt_level level);
>>   
>> +static inline pgd_t *get_page_root(void)
> 
> Only nit I have: naming is hard... do you think it makes sense to reflect that
> we're talking about the primary-space root here?
> 
> get_primary_page_root()?
> 
> It's not like we're using the other spaces much in kut, but maybe we will in the
> future.

Sure, we can still make it take an enum in the future to switch the crs 
depending on which ASCE we want.

  reply	other threads:[~2026-04-15 12:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-15  8:45 [kvm-unit-tests 0/5] s390x: Cleanup virtualization library Janosch Frank
2026-04-15  8:45 ` [kvm-unit-tests 1/5] lib: s390x: Add function to get page root Janosch Frank
2026-04-15 11:53   ` Nico Boehr
2026-04-15 12:01     ` Janosch Frank [this message]
2026-04-15  8:45 ` [kvm-unit-tests 2/5] lib: s390x: sie: Allocate physical guest memory via memalign Janosch Frank
2026-04-15  8:45 ` [kvm-unit-tests 3/5] lib: s390x: sie: Free guest memory on destroy Janosch Frank
2026-04-15 14:21   ` Nico Boehr
2026-04-16  8:03     ` Janosch Frank
2026-04-16 10:24       ` Nico Boehr
2026-04-15  8:45 ` [kvm-unit-tests 4/5] lib: s390x: snippet: Add function to create a guest of specific length Janosch Frank
2026-04-16  7:50   ` Nico Boehr
2026-04-15  8:45 ` [kvm-unit-tests 5/5] lib: s390x: Remove kvm s390 prefix from sie control block Janosch Frank
2026-04-16  7:48   ` Nico Boehr
2026-04-16  8:00     ` 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=6a682f41-46f9-4727-8611-4aa461a9c1d4@linux.ibm.com \
    --to=frankja@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nrb@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