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

RE: [PATCH V2 0/6] populate/unpopulate memory when domain on static


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Tue, 19 Apr 2022 09:11:40 +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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nP7B4g1CQ7Hls5tgmaddDBfVEV3wloXf8QdYLFc7WWM=; b=JDZPzFEan/xfMk6k94jp7qpjMemWyWNBCaxu1O/ivfZHyexBkdt8QJmzxqtVw2XeB0uTbo/N3LBe4WbO+S5ZMZEGuK0Y47/AG34WsNZQxFFZto+JNE1RFPyMVF0l1pl14AK+HD+aKrgdYGgbcGfq8DQKnMGStmmzbEwMEHJU8aJG6t2KTtiuy2Xxv+eWcq44fpDfDNpx5GoHfbJ+0KZ+FgKTL9tB51devaRWia3ELCMg9KRRAPezOuksWgd5Ag8lqxO5TH4DtVkRJ85o5YtmSgwuX5+bxSUEDuS1dWIxbNiAIlZpPWv4m9olwyndsE6VV0MfAM9mcbFSstKP7l9czA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JVjvWmJ8E0Mvs9h2xuVmd3rsRrq9glks0NEGqELgNIsKkdjPn74/K61QW9dHSXGaUZVdJfErz9f1N8JCGK5Zb7d+GY6w2kZA5kEibLHZm4XkGy7pKWAQswFMMnmqzOcIKL817IQYrtmIARaxfKMoX1K9oYpyntpQ4tAYFw9Q7DVWlLmt31BM7QiRQFN5nFaR1BCva5fOWC6PWFEc+heyV29EwQkads/zq7kN3QGTsp65D3y9xPODbxXDl6UoF+M+KiHkUCaToRNexpUNQ+GD+fHR+7wpMKiA3WDZH66nwY7he/CI7wQK9MLpGkCQje5HLK9GyaCLMnwIC6t9G48Ipg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Wei Chen <Wei.Chen@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 19 Apr 2022 09:11:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYUx8fG8TKp+50a0uuNwFvLPqiqKz27bYAgAABRyA=
  • Thread-topic: [PATCH V2 0/6] populate/unpopulate memory when domain on static

Hi jan

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Tuesday, April 19, 2022 4:47 PM
> To: Penny Zheng <Penny.Zheng@xxxxxxx>
> Cc: Wei Chen <Wei.Chen@xxxxxxx>; Andrew Cooper
> <andrew.cooper3@xxxxxxxxxx>; George Dunlap <george.dunlap@xxxxxxxxxx>;
> Julien Grall <julien@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; 
> Wei
> Liu <wl@xxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>;
> Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH V2 0/6] populate/unpopulate memory when domain on
> static
> 
> On 18.04.2022 14:22, Penny Zheng wrote:
> > Today when a domain unpopulates the memory on runtime, they will
> > always hand the memory over to the heap allocator. And it will be a
> > problem if it is a static domain. Pages as guest RAM for static domain
> > shall always be reserved to only this domain and not be used for any
> > other purposes, so they shall never go back to heap allocator.
> >
> > This patch serie intends to fix this issue, by adding pages on the new
> > list resv_page_list after having taken them off the "normal" list,
> > when unpopulating memory, and retrieving pages from resv page
> > list(resv_page_list) when populating memory.
> >
> > ---
> > v2 changes:
> > - let "flags" live in the struct domain. So other arch can take
> > advantage of it in the future
> > - change name from "is_domain_on_static_allocation" to
> "is_domain_static()"
> 
> I have reservations against this new name: This could mean far more aspects of
> the domain are static than just its memory assignment. Was this intended (or
> at least considered)?
> 

Ok. Julien gave me two suggestions back the day, maybe the other 
"is_domain_using_staticmem()"
is better and to the point. I'll change it in the next serie.

> Jan


 


Rackspace

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