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

Re: [4.17?] Re: [PATCH] common: map_vcpu_info() wants to unshare the underlying page


  • To: Julien Grall <julien@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 28 Oct 2022 11:33:15 +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=VQqwifjrRX2J6HNw2QwhDfDl/0nuZREDzWmJGvuyZM4=; b=gm7S4vGKZB+cCgUzEHiKEN/N1tuKClJdbtyRwtSWWxg9/PJAxZDAxXuncswcbUi55sy1qOFkbjXtWehS+W415zsRSVKL1Xhbbky0GXHUwEWvuPEzOcANPvfekH2bp4g3rJZGzHu1mvoeJBUE+NOEWsqT7jKu3OGvogzF0oT9DlExiFAaccWL+2u4psLo12wXy6ZHx9hqlGmKZ32OH2fJrlLrEaMRdNJxfuOhTaQOfQDcCtn/EgGdJYiEcmuDHvNIiM8QtmhFCRbjrwT4i1QxpLNEQseMGbtFppRr+Vtb9H6k4I54UiKq/nJRR53ioL2L58IsRxbie+lxv+I+8ZGfvQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jjw7B0UNGB0W1xzjMR7IFOB5o8KhgI4iG5V7M6NVBzUi1Pbl5K6xjMPA1n6GdFkT5IozLSvu2OOAUSP4eee4zAXaRi30Z2zQCv/dqSQdA4z0MsH1ws5Ghhv0wizmiOt7Zx0oEnBWdkPQd+3/nDyCPOLv5Gac+c3lyK4P9CaVR486YcxfO3NvIFMoQ0drnAcv/EAS5y8dEYqM6Pr+gQD6UafBpPAKxOfeu0o7AmlJEkN19/hLnM40joIyW47FSVEktWtQvBiuiBp9RbrIDI6pyqNCISiT12fi08gUTSAqqCT08S5q0HW4lZtc3Inl4OPg8LsKJtjZJUCJf0vyhmmBWA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Fri, 28 Oct 2022 09:33:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.10.2022 14:22, Julien Grall wrote:
> On 26/10/2022 03:03, Henry Wang wrote:
>>> -----Original Message-----
>>> From: Jan Beulich <jbeulich@xxxxxxxx>
>>> Sent: Wednesday, October 26, 2022 12:07 AM
>>> To: Henry Wang <Henry.Wang@xxxxxxx>
>>> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Andrew Cooper
>>> <andrew.cooper3@xxxxxxxxxx>; George Dunlap <george.dunlap@xxxxxxxxxx>;
>>> Julien Grall <julien@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>;
>>> Wei Liu <wl@xxxxxxx>; Roger Pau Monné <roger.pau@xxxxxxxxxx>
>>> Subject: [4.17?] Re: [PATCH] common: map_vcpu_info() wants to unshare
>>> the underlying page
>>>
>>> On 25.10.2022 17:42, Roger Pau Monné wrote:
>>>> On Tue, Oct 11, 2022 at 10:48:38AM +0200, Jan Beulich wrote:
>>>>> Not passing P2M_UNSHARE to get_page_from_gfn() means there won't
>>> even be
>>>>> an attempt to unshare the referenced page, without any indication to the
>>>>> caller (e.g. -EAGAIN). Note that guests have no direct control over
>>>>> which of their pages are shared (or paged out), and hence they have no
>>>>> way to make sure all on their own that the subsequent obtaining of a
>>>>> writable type reference can actually succeed.
>>>>>
>>>>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>>
>>>> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>>>
>>> I didn't Cc you on the initial submission because mem-sharing isn't a
>>> supported feature, but upon reconsideration I thought I'd at least ask
>>> whether you would want to give this a release-ack. I don't really see
>>> any risk associated with it.
>>
>> By looking at the patch itself, this change seems ok to me, so I think
>> I will not block it, but I think Arm maintainers' approval might be needed
>> because of the discussion in [1], so I added them for their information.
>> If Arm maintainers do not object the change, you can have my release-ack.

I'll take the liberty then to translate this into an actual tag, with ...

> The P2M query type is so far ignored on Arm as we neither support 
> populate-on-demand nor memsharing.
> 
> I am assuming that if we ever introduce any those of features, we would 
> follow the same behavior as x86. So:
> 
> Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

... this now in place (thanks Julien).

Jan



 


Rackspace

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