From: Paul Durrant Subject: Re: [PATCH v3 3/3] tools: introduce parameter max_wp_ram_ranges. Date: Wed, 17 Feb 2016 10:03:32 +0000 Message-ID: <899141f538224458a4f35ca8ead0ffce@AMSPEX02CL03.citrite.net> References: <1454064314-7799-1-git-send-email-yu.c.zhang@linux.intel.com> <56B1C93002000078000CDD4B@prv-mh.provo.novell.com> <6b6d0558d3c24f9483ad41d88ced9837@AMSPEX02CL03.citrite.net> <56B2023E02000078000CE01A@prv-mh.provo.novell.com> <7316ea5cb41543d69d7727721368e3c8@AMSPEX02CL03.citrite.net> <56B207EA02000078000CE0A8@prv-mh.provo.novell.com> <9467b97e15bc4cb1b8d6c948ad4fc926@AMSPEX02CL03.citrite.net> <56B20BFA02000078000CE0E7@prv-mh.provo.novell.com> <621ce95774ac4742b96ed9d504c08670@AMSPEX02CL03.citrite.net> <22194.4639.132613.604758@mariner.uk.xensource.com> <56B310D7.7010506@linux.intel.com> <44e528cd11744242961d46c6f87d2bb9@AMSPEX02CL03.citrite.net> <56B31C1C.3000907@linux.intel.com> <56B3373B02000078000CE86C@prv-mh.provo.novell.com> <22195.21299.624759.118961@mariner.uk.xensource.com> <56B3695E02000078000CE9D1@prv-mh.provo.novell.com> <56B38675.3050008@citrix.com> <56B46C3302000078000CEDF4@prv-mh.provo.novell.com> <012513b81f7b4da9af251d942ebae66c@AMSPEX02CL03.citrite.net> <4d9512d6068946e0921a784705f2d3f4@AMSPEX02CL03.citrite.net> <56C3092302000078000D28BE@prv-mh.provo.novell.com> <18f9277a243247739d1565f71accca8f@AMSPEX02CL03.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kevin Tian , Jan Beulich Cc: Wei Liu , Ian Campbell , Andrew Cooper , George Dunlap , Zhang Yu , George Dunlap , "xen-devel@lists.xen.org" , Stefano Stabellini , "Lv, Zhiyuan" , Ian Jackson , "Keir (Xen.org)" List-Id: xen-devel@lists.xenproject.org > -----Original Message----- > From: Tian, Kevin [mailto:kevin.tian@intel.com] > Sent: 17 February 2016 09:58 > To: Paul Durrant; Jan Beulich > Cc: Andrew Cooper; George Dunlap; Ian Campbell; Ian Jackson; Stefano > Stabellini; Wei Liu; Lv, Zhiyuan; Zhang Yu; xen-devel@lists.xen.org; George > Dunlap; Keir (Xen.org) > Subject: RE: [Xen-devel] [PATCH v3 3/3] tools: introduce parameter > max_wp_ram_ranges. > > > From: Paul Durrant [mailto:Paul.Durrant@citrix.com] > > Sent: Wednesday, February 17, 2016 4:58 PM > > > > > > > > btw does this design consider the case where multiple ioreq servers > > > may claim on same page? > > > > Yes it does and there are currently insufficient page types to allow any > more than a single > > ioreq server to claim a type. My plan is that, in future, we can add a p2t > mapping table to > > allow for more types and then introduce HVMMEM_ioreq_1, > HVMMEM_ioreq_2, etc. > > so these new types actually represent ioreq server ID, right? If yes I can then > understand your earlier explanations. Well, not quite. Each of these types can be steered to exactly one ioreq server but there will be a new hypercall to control the mapping. The design doc will make it clear. Paul > > > > > > For example, different usages may both > > > want to capture write requests on the same set of pages (say XenGT > > > selectively write-protects a subset of pages due to shadow GTT, while > > > another agent wants to monitor all guest writes to any guest memory > > > page). > > > > Monitoring is a different thing altogether. Emulation is costly and not > something you'd want > > to use for that purpose. If you want to monitor writes then log-dirty > already exists for that > > purpose. > > Agree. > > > > > > > > > Thanks > > > Kevin > > > > I hope my explanation helped. I think things will be clearer once I've had > chance to actually > > put together a design doc. and hack up a PoC (probably only for EPT at > first). > > > > Thanks for the help. Let's see whether we can have some solution ready for > 4.7. :-) > > Thanks > Kevin