Re: [PATCH 03/22] acpi: vmap pages in acpi_os_alloc_memory

2023-01-23 Thread Stefano Stabellini
On Fri, 16 Dec 2022, Julien Grall wrote: > From: Hongyan Xia > > Also, introduce a wrapper around vmap that maps a contiguous range for > boot allocations. Unfortunately, the new helper cannot be a static inline > because the dependences are a mess. We would need to re-include > asm/page.h (was r

Re: [PATCH 03/22] acpi: vmap pages in acpi_os_alloc_memory

2022-12-21 Thread Julien Grall
Hi Jan, On 20/12/2022 15:15, Jan Beulich wrote: On 16.12.2022 12:48, Julien Grall wrote: --- a/xen/common/vmap.c +++ b/xen/common/vmap.c @@ -244,6 +244,11 @@ void *vmap(const mfn_t *mfn, unsigned int nr) return __vmap(mfn, 1, nr, 1, PAGE_HYPERVISOR, VMAP_DEFAULT); } +void *vmap_conti

Re: [PATCH 03/22] acpi: vmap pages in acpi_os_alloc_memory

2022-12-20 Thread Jan Beulich
On 16.12.2022 12:48, Julien Grall wrote: > --- a/xen/common/vmap.c > +++ b/xen/common/vmap.c > @@ -244,6 +244,11 @@ void *vmap(const mfn_t *mfn, unsigned int nr) > return __vmap(mfn, 1, nr, 1, PAGE_HYPERVISOR, VMAP_DEFAULT); > } > > +void *vmap_contig_pages(mfn_t mfn, unsigned int nr_pages)

Re: [PATCH 03/22] acpi: vmap pages in acpi_os_alloc_memory

2022-12-16 Thread Julien Grall
Hi, On 16/12/2022 11:48, Julien Grall wrote: From: Hongyan Xia Also, introduce a wrapper around vmap that maps a contiguous range for boot allocations. Unfortunately, the new helper cannot be a static inline because the dependences are a mess. We would need to re-include asm/page.h (was remove

[PATCH 03/22] acpi: vmap pages in acpi_os_alloc_memory

2022-12-16 Thread Julien Grall
From: Hongyan Xia Also, introduce a wrapper around vmap that maps a contiguous range for boot allocations. Unfortunately, the new helper cannot be a static inline because the dependences are a mess. We would need to re-include asm/page.h (was removed in aa4b9d1ee653 "include: don't use asm/page.h