[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH 08/10] xen/arm: introduce reserved_page_list


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Wed, 19 May 2021 06:46:29 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2pxsC1t+NLF4X5GmOARzvzf6dayhkqZGGMAervDQAUE=; b=V5DAUOsY1fXtQlspeYI8HD4B9bi+BOSgb15n1MuLLMSiCvbfs371TNmJ9zekabozeVjwv71ly+y58fznCTH68wbJnYjM/lBmDt2uUelocCCbgRu4zm+1YyjKoc907z51nkAM+T/i8sTbW8Bz/aLHjro97J9gyRuJnTDwTLXclbTqpigcb3SIolQQ6acsA0m5I7TXN8WlyOUdN/l6GpglTk1+Mdj3YMPMHBgtq9DyS64e8PciMb0LIdJ87HnmFch65WvGf12L76lxwOzdpajv84cpmuqj3eNJruf6UrM+z02J/XIoi6nwZl/mNvLKr2pZGRo9HXpUk/0+UgjosgeMpA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hfor7oII/j5wGZwvzLyqe14viMjqr0alhmKgknzJK8aWOZ1HwUjkwN3PIVtuN8595xy9UM7jd45J4McI+yz81V7Kul24RzS4qsDFiLWl1yD3o9qEaovP2x0xCwXqQ0UzU9nKz2g7nsm1brDioCKv8CFHH+0vIkzKZEqjMhkJ0q7ET9lVym1ZyFJ8lLRipg0yBkPLrDqZZ1kP0/FlPz0TgQfPTZT5Ls5RWudsvGVHHwB1PLrgp4jovk/rc5jmEtNiTZOsFxsD4kS72cXrulftRGsIG1NxSJQJI8kBjwkJK8Gx6rfJWApKvQ8hgQgc7E5i9ndpT5oDFZM7Vhg/L4TbeQ==
  • Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, nd <nd@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>
  • Delivery-date: Wed, 19 May 2021 06:46:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXS6XFXoougD95T02cEJMQScUNQ6ro2ogAgAAQIWCAAC7qgIABQ90g
  • Thread-topic: [PATCH 08/10] xen/arm: introduce reserved_page_list

Hi Jan 

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Tuesday, May 18, 2021 7:25 PM
> To: Penny Zheng <Penny.Zheng@xxxxxxx>
> Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Wei Chen
> <Wei.Chen@xxxxxxx>; nd <nd@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx;
> sstabellini@xxxxxxxxxx; julien@xxxxxxx
> Subject: Re: [PATCH 08/10] xen/arm: introduce reserved_page_list
> 
> On 18.05.2021 10:38, Penny Zheng wrote:
> > Hi Jan
> >
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Tuesday, May 18, 2021 3:39 PM
> >> To: Penny Zheng <Penny.Zheng@xxxxxxx>
> >> Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Wei Chen
> >> <Wei.Chen@xxxxxxx>; nd <nd@xxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx;
> >> sstabellini@xxxxxxxxxx; julien@xxxxxxx
> >> Subject: Re: [PATCH 08/10] xen/arm: introduce reserved_page_list
> >>
> >> On 18.05.2021 07:21, Penny Zheng wrote:
> >>> Since page_list under struct domain refers to linked pages as gueast
> >>> RAM allocated from heap, it should not include reserved pages of
> >>> static
> >> memory.
> >>>
> >>> The number of PGC_reserved pages assigned to a domain is tracked in
> >>> a new 'reserved_pages' counter. Also introduce a new
> >>> reserved_page_list to link pages of static memory. Let page_to_list
> >>> return reserved_page_list, when flag is PGC_reserved.
> >>>
> >>> Later, when domain get destroyed or restarted, those new values will
> >>> help relinquish memory to proper place, not been given back to heap.
> >>>
> >>> Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx>
> >>> ---
> >>>  xen/common/domain.c     | 1 +
> >>>  xen/common/page_alloc.c | 7 +++++--  xen/include/xen/sched.h | 5
> >>> +++++
> >>>  3 files changed, 11 insertions(+), 2 deletions(-)
> >>
> >> This contradicts the title's prefix: There's no Arm-specific change here at
> all.
> >> But imo the title is correct, and the changes should be Arm-specific.
> >> There's no point having struct domain fields on e.g. x86 which aren't used
> there at all.
> >>
> >
> > Yep, you're right.
> > I'll add ifdefs in the following changes.
> 
> As necessary, please. Moving stuff to Arm-specific files would be preferable.
> 

Sure, I'll add a new CONFIG_STATICMEM to include all related functions and 
variables. Thx

> Jan

Cheers

Penny Zheng

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.