[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: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Wed, 26 Oct 2022 02:03:32 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • 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=2; 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=+z2dHxmsY1Lp//3Um1aszd+MDEWQGZ0kuBI78SFfUjg=; b=F6zo/8g1z7Y4dMZ9sOP9jHmN2NlT0obOOT+fMEAGL3DFyzEcIxLijKtQWDH4iA8J3hUEWjgQ+wSIJkM9H7KnxyVlJzfa9rhTKCTUN5V8bO6+26GK6FTXKiQ31BvxThEXjXjdB4BOQpjEiu5DhvCxdJaMAMm2MslZXyX+OX/D9MzS4wMIx3Quoo1r7jDHia8iA6y6IJpqcdcr9NhQY6X3GcNxbDFx7D/F/wlK69WujPSKf8Y4+kTE1EGYhX+yGgsO7/20SlahPFEnJwM9LJs2Hbg57mftLiUT9OJ2y6ZiggdhgMqdQNrm5z8C+XW/NosqPX5ybiXui5H9JA/0RI8kzQ==
  • 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=+z2dHxmsY1Lp//3Um1aszd+MDEWQGZ0kuBI78SFfUjg=; b=AuiVjD4E52dSv0h8oJrDrLBFCxyOA7nA7wT7jJjTwrgQ9GSNVRRfYAAKhUlVMhLnPlt1qTRfiTrWaXnRkXWjZbcXB49Z5HYlysT1fMmnBu2jdzP30QVQet2SSwNQJixR3qgABRLdPIEFHVuZ4rH0WVOKbxFGKdcSBmVgKxwSV3G+ShnNegn2zh9oxmqJp5iPW+i6kt5z8VZgqAtPQrflLZq4S7eMatE0AcyVAPsXaXyxToZHbsdY0QrEKTwan6l2TOUB5XuaIAD69kGaPf7RHZyHl6xfcDBP5Ogfk06uMmFiRfvdnwbx5wMorFjS1JpsXHmBfpwlSCtS+u6onVbgFA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=S7VS46O6QQfp+f/6Rphz+LDQWN82IKNQFZnXBLZazX3HGDLCvv6Ld1VuZRX3oNqijHZThqCz0mfpN8hCMeU4h1C2eiXbW1D90sJfc0TWRTewFTUBS+99pMNS4wUJ0xdeDThsb4VtY40vdiDvlCy4QjQcujqehsPdW/gdVQ8lHiIID4MVrjPEf90PdMTpB2WtjrIJ6DIadpE/qXqC6Dpil1M61htIq2qmPh5LcWjhuR9yS7H/ggEfFH0exXGo7L7rVUfnr0en4iZgy61tPnZnlYfE1D63oItIp4E2UYzldpTUBXHKzdSV7fiok5w0QxZYuFNKGTI2h46DrP+o49yi2g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hg08SOC0AMOhn5Qz1LMe+qAz8DjqD3Sft1JX0kMOoKkwV/J8YS3peEswQpJ1fh0FE8OHuMx+cpkr4Yc8VgEuWni1px+/YuYlb1TQo0+IFD3Dd1v3ys+vNAx3kF5USsx2RxLT82bS2nvibejZe54JS+3EYpF4CPuaGo8lWFQQ75S+aycAa3DaPihPAt8IVlTRKxOclbLOwvvDcikxChcZc4JdCXbYcWmaV3HNdRQsMRdBbez0fvgwj9XMDultOOLdEl4kpUY6Pluq5vlSqEu44BIYKKTc56mlgj/U0fqT+45d6MM+yhimHykyUG9UmIm74J1XgqQanTuosSXG0XSxIw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Wed, 26 Oct 2022 02:03:55 +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: AQHY3U5WyIj+k3kfXES3Q5PgZ4e+DK4fVjIAgAAG1YCAAKWEIA==
  • Thread-topic: [4.17?] Re: [PATCH] common: map_vcpu_info() wants to unshare the underlying page

(+Arm maintainers)

Hi Jan,

> -----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.

[1] 
https://lore.kernel.org/xen-devel/1780acb3-d297-edc6-3a1e-adf8b28a5262@xxxxxxxx/

Kind regards,
Henry

> 
> Jan

 


Rackspace

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