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

Re: [Xen-devel] [PATCH 3/3] tools: introduce parameter max_ranges.

On 1/20/2016 6:18 PM, Paul Durrant wrote:
-----Original Message-----
From: Ian Campbell [mailto:ian.campbell@xxxxxxxxxx]
Sent: 20 January 2016 10:16
To: Kevin Tian; Yu, Zhang; Wei Liu; Paul Durrant
Cc: Keir (Xen.org); jbeulich@xxxxxxxx; Andrew Cooper; xen-
devel@xxxxxxxxxxxxx; Lv, Zhiyuan; Stefano Stabellini
Subject: Re: [Xen-devel] [PATCH 3/3] tools: introduce parameter

On Wed, 2016-01-20 at 03:58 +0000, Tian, Kevin wrote:
From: Yu, Zhang [mailto:yu.c.zhang@xxxxxxxxxxxxxxx]
Sent: Wednesday, January 20, 2016 11:33 AM
As a feature this write-protection has nothing to be GPU
virtualization specific.
In the future the same mediated pass-through idea used in XenGT may
used on other I/O devices which need to shadow some structure w/
to write-protect guest memory. So it's not good to tie this to either
or GTT.

Thank you, Kevin.
Well, if this parameter is not supposed to be xengt specific, we do not
need to connect it with any xengt flag such as ."vgt=1" or "GVT-g=1".
Hence the user will have to configure the max_wp_ram_ranges himself,

Not always. The option can be configured manually by the user, or
automatically set in the code when "vgt=1" is recognized.

Is the latter approach not always sufficient? IOW, if it can be done
automatically, why would the user need to tweak it?

I think latter is sufficient for now. We always have the option of adding a 
specific wp_ram_ranges parameter in future if there is a need

Thank you all for your reply.
Well, I believe the latter option is only sufficient for most
usage models on BDW due to rangeset's ability to merge continuous
pages into one range, but there might be some extreme cases, e.g.
too many graphic related applications in one VM, which create a
great deal of per-process graphic translation tables. And also,
future cpu platforms might provide even more PPGGTs. So, I suggest
we use this max_wp_ram_ranges, and give the control to the system
administrator. Besides, like Kevin said, XenGT's mediated pass-thru
idea can also be adopted to other devices, and this parameter may
also help.
Also, we have plans to upstream the tool-stack changes later this
year. If this max_wp_ram_ranges is not convenient, we can introduce
a method to automatically set its default value.




Xen-devel mailing list



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