From: Wei Liu Subject: Re: [v4][PATCH 11/19] tools: introduce some new parameters to set rdm policy Date: Thu, 25 Jun 2015 12:38:38 +0100 Message-ID: <20150625113838.GO6545@zion.uk.xensource.com> References: <1435053450-25131-1-git-send-email-tiejun.chen@intel.com> <1435053450-25131-12-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1435053450-25131-12-git-send-email-tiejun.chen@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tiejun Chen Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Jun 23, 2015 at 05:57:22PM +0800, Tiejun Chen wrote: > This patch introduces user configurable parameters to specify RDM > resource and according policies, > > Global RDM parameter: > rdm = "type=none/host,reserve=strict/relaxed" > Per-device RDM parameter: > pci = [ 'sbdf, rdm_reserve=strict/relaxed' ] > > Global RDM parameter, "type", allows user to specify reserved regions > explicitly, e.g. using 'host' to include all reserved regions reported > on this platform which is good to handle hotplug scenario. In the future > this parameter may be further extended to allow specifying random regions, > e.g. even those belonging to another platform as a preparation for live > migration with passthrough devices. Instead, 'none' means we have nothing > to do all reserved regions and ignore all policies, so guest work as before. > > 'strict/relaxed' policy decides how to handle conflict when reserving RDM > regions in pfn space. If conflict exists, 'strict' means an immediate error > so VM will be killed, while 'relaxed' allows moving forward with a warning > message thrown out. > > Default per-device RDM policy is 'strict', while default global RDM policy > is 'relaxed'. When both policies are specified on a given region, 'strict' is > always preferred. > > CC: Ian Jackson > CC: Stefano Stabellini > CC: Ian Campbell > CC: Wei Liu > Signed-off-by: Tiejun Chen The code looks good to me. I will wait for native English speakers to have a look at the docs. Wei.