ll ; Stefano Stabellini ;
>> Wei Liu ; xen-devel@lists.xenproject.org
>> Subject: Re: [PATCH v10 8/9] xen: retrieve reserved pages on
>> populate_physmap
>>
>> On 05.09.2022 09:08, Penny Zheng wrote:
>>> Hi jan
>>>
>>>> -Original Message-
&
ny Zheng
> >> Cc: Wei Chen ; Andrew Cooper
> >> ; George Dunlap
> >> ; Julien Grall ; Stefano
> >> Stabellini ; Wei Liu ;
> >> xen-devel@lists.xenproject.org
> >> Subject: Re: [PATCH v10 8/9] xen: retrieve reserved pages on
> >> populate_phys
ll ; Stefano Stabellini ;
>> Wei Liu ; xen-devel@lists.xenproject.org
>> Subject: Re: [PATCH v10 8/9] xen: retrieve reserved pages on
>> populate_physmap
>>
>> On 16.08.2022 04:36, Penny Zheng wrote:
>>> @@ -2867,6 +2854,61 @@ int __init acquire_domstatic_pages(struct
>>
Hi jan
> -Original Message-
> From: Jan Beulich
> Sent: Wednesday, August 17, 2022 6:05 PM
> To: Penny Zheng
> Cc: Wei Chen ; Andrew Cooper
> ; George Dunlap ;
> Julien Grall ; Stefano Stabellini ;
> Wei Liu ; xen-devel@lists.xenproject.org
> Subject: Re: [P
On 16.08.2022 04:36, Penny Zheng wrote:
> @@ -2867,6 +2854,61 @@ int __init acquire_domstatic_pages(struct domain *d,
> mfn_t smfn,
>
> return 0;
> }
> +
> +/*
> + * Acquire nr_mfns contiguous pages, starting at #smfn, of static memory,
> + * then assign them to one specific domain #d.
> +
When a static domain populates memory through populate_physmap at runtime,
it shall retrieve reserved pages from resv_page_list to make sure that
guest RAM is still restricted in statically configured memory regions.
This commit also introduces a new helper acquire_reserved_page to make it work.
S