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

Re: [PATCH v10 6/9] xen: unpopulate memory when domain is static


  • To: Penny Zheng <Penny.Zheng@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 17 Aug 2022 10:51:02 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=1KNIHRTwuVsXDeNf0hizZ0ZQ5aVUULu1bWpEcMl9E1M=; b=cGK193rKmJ/TLnXz7ARjXKU1Zxw3tSnrJmMG9rfzAcT+VmGpZKGiWjj+87AdOpwC1Pry5IAdEBvybsl0L7JMChxWREP///YvGCma2Yd5ezQI/oMLr9nFxPqls+8iHWingf6OxYXP/HRz64zQqI97Z8evmnYwZQ+Yq8qDSxOJ8ewvjsxsdJYnq0ZT/E5qPw7DOqvooYZVwIQm+69oXrx/xcICMdgn6cQ9zTfLPoIj/kFodqv6xpphGuEs5+EbTyFrybG3wWUT4CnwhJoTtP6rX0iHK8y7oRIA1ZXX+h7cUgjBuutp+GvwftoHrSNptwYSrK1DVvE/EnMQ11FloOVzRg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d72Yq7h4qjaBJdMpWSfKbt+k4c5TxQV29KU+mrFFTz1cxWGoaP2siKCLB/iDSN5LnuoQ54vUk7/zLHLhyOx/eeJRU56BbFqKVWCk5s6spmq+r1MPpNo8282zs6qnaNBnINIWRnVDtp7wfjQZ4mMKu2FNOF6ruvlxTHKkzwYmxq7Wp/gJHPLylayJw6137PEfy3QV5iLPlF9JiB3Dp/iWTVFiIu/1pawWTC9JoHdU5qxa5tr5YNuPvUxy+DCivn+2/ey8QoeR7kiglWciBO9vWrjvdQ98V53d40cePq68IXZFYi1gtxs/DpQ5qAZhZlzpP9N4b6mvacqmHnQI2V9Ctw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: 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>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 17 Aug 2022 08:51:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 16.08.2022 04:36, Penny Zheng wrote:
> Today when a domain unpopulates the memory on runtime, they will always
> hand the memory back to the heap allocator. And it will be a problem if domain
> is static.
> 
> Pages as guest RAM for static domain shall be reserved to only this domain
> and not be used for any other purposes, so they shall never go back to heap
> allocator.
> 
> This commit puts reserved pages on the new list resv_page_list only after
> having taken them off the "normal" list, when the last ref dropped.

The last part of this sentence (which afaict was backwards anyway) is
now stale and should be removed. Then ...

> Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

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