From: Wei Liu Subject: Re: [RFC][PATCH 01/13] tools: introduce some new parameters to set rdm policy Date: Wed, 20 May 2015 10:07:13 +0100 Message-ID: <20150520090713.GX26335@zion.uk.xensource.com> References: <20150511145432.GD30997@zion.uk.xensource.com> <55555157.3000604@intel.com> <20150518191743.GJ9503@zion.uk.xensource.com> <555AAB11.3080105@intel.com> <20150519094203.GC9893@zion.uk.xensource.com> <555B1563.5000502@intel.com> <20150519110041.GB21998@zion.uk.xensource.com> <555C1B5C.7070401@intel.com> <20150520083644.GV26335@zion.uk.xensource.com> <555C4B20.2040609@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: <555C4B20.2040609@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: kevin.tian@intel.com, Wei Liu , ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, JBeulich@suse.com, yang.z.zhang@intel.com, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, May 20, 2015 at 04:51:44PM +0800, Chen, Tiejun wrote: > On 2015/5/20 16:36, Wei Liu wrote: > >On Wed, May 20, 2015 at 01:27:56PM +0800, Chen, Tiejun wrote: > >[...] > >>>>We have this definition, > >>>> > >>>>+libxl_rdm_reserve_type = Enumeration("rdm_reserve_type", [ > >>>>+ (0, "none"), > >>>>+ (1, "host"), > >>>>+ ]) > >>>> > >>>>If we set 'type=none', this means we would do nothing actually since we > >>>>don't expose any rdms to guest. This behavior will ensue we go back the > >>>>existing scenario without our patch. > >>>> > >>> > >>>But this only works with global configuration and individual > >>>configuration in PCI spec trumps this, right? > >> > >>You're right. > >> > >>> > >>>Think about how an old configuration migrated to newer version of Xen > >>>should work. For example, I don't have rdm= but have pci=['xxxx']. Do we > >>>need to make sure this still work? I guess the answer is if it already > >> > >>Definitely. > >> > >>>works before RDM it should continue to work as there is really no > >>>conflict before. In this case whether we enable RDM or not doesn't make > >>>a difference to a guest that's already working before. Am I right? > >> > > > >You haven't answered this question... I'm trying to determine what > >should be a sensible default value. > > I think I should say 'no' here. RDM (RMRR) already exists and its also being > enabled before I'm trying to introduce this series of patch. But we have > some legacy or potential problems to really work well with RMRR. > > > > >If the answer to that question is "yes", then we should enable RDM by > >default, because it does no harm to guests that are already working and > >fix problem for the guests that are not working; if the answer is "no" > >or "not sure", we should use "none". Don't worry, we can change the > >default value later if necessary. > > > > So we're going to the latter :) > > >Using "none" as default leaves us on the safe side but it would make it > >less nicer to use Xen. But well, safety comes first. > > Actually RMRR doesn't matter in most cases unless you're trying to do pass > through with a device which owns RMRR and also really use RMRR indeed. So > from my point of view, I agree "NONE" should be default since we really > should make sure we have a way to approach our original behavior in > accordance with your concern. > Makes sense. Thanks for your reply. Wei.