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

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


  • To: Henry Wang <Henry.Wang@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 25 Oct 2022 18:07:03 +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=kzDs02ECJydrm9OLb34e/Go0RUqZDfEPGFdVioZAiaU=; b=IeubrjZQHUqOXqmDMeW3IP4C9NpD2Jp1JYMkOo82DQ68CNE5RZ9n7ZLE4dpMr63YDoSL3kG9rJryXk18edFKAQWeLTvO6+MEDkKKGM0Xo2zRq7IwjVDFKFz4ZpyuVqfn/Y+CISTIV0keemEuzSsomujx3GNz/X/eu8PWUWAImy+4EF/AZh1cQnGKTL42o/2KPSBgyxnqhJ+c9RYqG0Rc57mKmz6oNwECTYi4zBSuxQMJTIAy6ZdRC2aiFEekHIa/gkhAwTdAq1p8IhhUCluSbnYXHRe7nSiLfLHwBVEodTARljlOyLrQJ/mi8Ez7eMq0IQjkOB6ifWBoZNIZ+5lPsQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KDPN+FqH+RaQd3k9a79QIn5TyVCW8dTbwyGlKx/eXE/TCRFvILheIYANDPPwfgM44krADcLVilY8w/pjq7RkEvQ9H9rZjWZYeXWuH0M5TgDXVXHXP1iePJy0/8mjmKNTAD5HlIZxF21MyrAfswR2lfWthQvIntGF7NwsThlTQzzZRI5sa95sz5i1pKuG2RsNYQae6+SM88+01tUjKzXu1qkwXPsgtlFGJBI9x1+Je2JE2ulUU6rzunX3+vbRq2YBReIlErz4UoCH07jLNHpgej+ssTzqcOj7TK5URpIrzvkja5ZrF0b8zXKpnI3iv/USafTCF5yJRXqCPJmpo+287A==
  • 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>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 25 Oct 2022 16:07:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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.

Jan



 


Rackspace

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