From: Wei Liu Subject: Re: [v11][PATCH 16/16] tools: parse to enable new rdm policy parameters Date: Wed, 22 Jul 2015 15:40:50 +0100 Message-ID: <20150722144050.GA16933@zion.uk.xensource.com> References: <1437528607-19315-1-git-send-email-tiejun.chen@intel.com> <1437528607-19315-17-git-send-email-tiejun.chen@intel.com> <21935.42035.490102.361337@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21935.42035.490102.361337@mariner.uk.xensource.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: Ian Jackson Cc: Tiejun Chen , Stefano Stabellini , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Jul 22, 2015 at 03:09:55PM +0100, Ian Jackson wrote: > Tiejun Chen writes ("[v11][PATCH 16/16] tools: parse to enable new rdm policy parameters"): > > This patch parses to enable user configurable parameters to specify > > RDM resource and according policies which are defined previously, > > > > Global RDM parameter: > > rdm = "strategy=host,policy=strict/relaxed" > > Per-device RDM parameter: > > pci = [ 'sbdf, rdm_policy=strict/relaxed' ] > > > > Default per-device RDM policy is same as default global RDM policy as being > > 'relaxed'. And the per-device policy would override the global policy like > > others. > > > > CC: Ian Jackson > > CC: Stefano Stabellini > > CC: Ian Campbell > > CC: Wei Liu > > Acked-by: Wei Liu > > Wei, as you know, I am double-checking the acks on this series. > > You acked v4. But v11 is somewhat different. Your ack was retained > and my subject line search did not turn up any authority for that. > > The v* message by the submitter says: > > > v8: > > > > * Clean some codes style issues. > > > > v7: > > > > * Just sync with the fallout of renaming parameters from patch #10. > > > > v6: > > > > * Just sync those renames introduced by patch #10. > > > > v5: > > > > * Need a rebase after we make all rdm variables specific to .hvm. > > * Like other pci option, the per-device policy always follows > > the global policy by default. > > v4 does not apply in the context of the current series. > > Below is the interdiff between v4 and v11, generated with `diff -b'. > (Sorry for handing you an interdiff.) > > Please ack/nack. > > Thanks, > Ian. > (wearing committer hat) Apart from the renaming and minor style fixes. The most notable hunk is > pcidev->seize = pci_seize; > -+ /* We'd like to force reserve rdm specific to a device by default.*/ > -+ pcidev->rdm_reserve = LIBXL_RDM_RESERVE_FLAG_STRICT; > - if (!xlu_pci_parse_bdf(config, pcidev, buf)) > - d_config->num_pcidevs++; > - } > ++ /* > ++ * Like other pci option, the per-device policy always follows > ++ * the global policy by default. > ++ */ > ++ pcidev->rdm_policy = b_info->u.hvm.rdm.policy; > + e = xlu_pci_parse_bdf(config, pcidev, buf); > + if (e) { > + fprintf(stderr, The default behaviour is changed but it's indeed mentioned in v5 change log and in line with what Jan and George suggested. So: Acked-by: Wei Liu on v11 > -- > -1.9.1 > - > +1.7.10.4 >