From: Wei Liu Subject: Re: [v4][PATCH 11/19] tools: introduce some new parameters to set rdm policy Date: Mon, 6 Jul 2015 18:16:29 +0100 Message-ID: <20150706171629.GI1134@zion.uk.xensource.com> References: <5593C063.7000705@intel.com> <5593C7AC.8030901@eu.citrix.com> <5593CC19.9020200@intel.com> <5593EB53.5000601@eu.citrix.com> <559A83E3.7040401@intel.com> <559AA41E020000780008CC14@mail.emea.novell.com> <559A8EF7.2000904@intel.com> <559A90AF.9010407@eu.citrix.com> <559AAE22020000780008CC97@mail.emea.novell.com> <559A94AE.1030401@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: <559A94AE.1030401@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: "Chen, Tiejun" Cc: Wei Liu , Ian Campbell , Stefano Stabellini , George Dunlap , IanJackson , "xen-devel@lists.xen.org" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Mon, Jul 06, 2015 at 10:46:06PM +0800, Chen, Tiejun wrote: > On 2015/7/6 22:34, Jan Beulich wrote: > >>>>On 06.07.15 at 16:29, wrote: > >>It sounds like part of the problem here is a matter of domains. > >> > >>Jan cares mostly about what happens in the hypervisor. At the > >>hypervisor level, there is only the per-device configurations, and he is > >>keen that rmrrs be "strict" by default, unless there is an explicit flag > >>to relax it. (I agree with this, FWIW.) > > I can't understand this point. > > There's no any default flag/policy in the hypervisor level, and the > hypervisor doesn't do anything to RMRR by itself. > > All actions just take place when xl/xc issue our needed requirements > according to the rdm setting in .cfg. > > >> > >>What we've been arguing about is the xl layer -- what settings should > >>xl/libxl give to the hypervisor, based on what's in the domain config? > >> > >>It sounds like Jan doesn't care a great deal about it, and in any case > >>would defer to the tools maintainers, but that if asked for his advice > >>he would say that the configuration in xl.cfg should act like all the > >>other pci device configurations: that you have a domain-wide default > >>that can be overridden in the per-device setting. > >> > >>I.e.: > >>--- > >>rdm='reserve=strict' > >>pci=[ '02:0.0', '01:1.1,rdm_reserve=relaxed' ] > >>--- > >>Would pass "strict" for the first device, and "relaxed" for the second. > >> > >>Do I understand you both properly, Jan / Tiejun? > > > >Yes for me. > > > > Looks all guys would like to walk into this way in the case of RMRR, so I > can follow up this way. ( Maybe the confusion above doesn't matter now? ) > FWIW this works for me too. Do remember to update code comment / commit message when you update your code. Wei. > Thanks > Tiejun