Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1374257
| From | Suzuki K Poulose <Suzuki.Poulose@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 07/17] kvm-arm: arm32: Introduce stage2 page table helpers |
| Date | 2016-04-08 16:50 +0200 |
| Message-ID | <rlFTs-5ih-11@gated-at.bofh.it> (permalink) |
| References | <rkfy2-5Pj-9@gated-at.bofh.it> <rkfy2-5Pj-21@gated-at.bofh.it> <rlE1k-3NA-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/04/16 13:43, Christoffer Dall wrote: > On Mon, Apr 04, 2016 at 05:26:07PM +0100, Suzuki K Poulose wrote: >> Define the page table helpers for walking the stage2 pagetable >> for arm. Since both hyp and stage2 have the same number of levels, >> as that of the host we reuse the host helpers. >> >> The exceptions are the p.d_addr_end routines which have to deal >> with IPA > 32bit, hence we use the open coded version of their host helpers >> which supports 64bit. >> >> +#ifndef __ARM_S2_PGTABLE_H_ >> +#define __ARM_S2_PGTABLE_H_ >> + >> +#define stage2_pgd_none(pgd) pgd_none(pgd) >> +#define stage2_pgd_clear(pgd) pgd_clear(pgd) >> +#define stage2_pgd_present(pgd) pgd_present(pgd) >> +#define stage2_pgd_populate(mm, pgd, pud) pgd_populate(mm, pgd, pud) >> +#define stage2_pud_offset(pgd, address) pud_offset(pgd, address) >> +#define stage2_pud_free(mm, pud) pud_free(mm, pud) >> + >> +#define stage2_pud_none(pud) pud_none(pud) >> +#define stage2_pud_clear(pud) pud_clear(pud) >> +#define stage2_pud_present(pud) pud_present(pud) >> +#define stage2_pud_populate(mm, pud, pmd) pud_populate(mm, pud, pmd) >> +#define stage2_pmd_offset(pud, address) pmd_offset(pud, address) >> +#define stage2_pmd_free(mm, pmd) pmd_free(mm, pmd) >> + >> +#define stage2_pud_huge(pud) pud_huge(pud) > > could we get rid of the mm parameter to all these stage2_ versions above > and simply implement them with the generic functions passing NULL in the > definitions instead? We could, I retained it just to match the corresponding host version. Will change it in the next version. > > Otherwise: > Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Thanks Suzuki
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 07/17] kvm-arm: arm32: Introduce stage2 page table helpers Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-04-04 18:30 +0200
Re: [PATCH 07/17] kvm-arm: arm32: Introduce stage2 page table helpers Christoffer Dall <christoffer.dall@linaro.org> - 2016-04-08 14:50 +0200
Re: [PATCH 07/17] kvm-arm: arm32: Introduce stage2 page table helpers Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2016-04-08 16:50 +0200
csiph-web