From: "Jan Beulich" Subject: Re: [PATCH v1 2/2] ioreq-server: Support scatter page forwarding Date: Tue, 05 Aug 2014 07:38:53 +0100 Message-ID: <53E0981D02000078000294B7@mail.emea.novell.com> References: <1406570127-3616-1-git-send-email-wei.ye@intel.com> <1406570127-3616-3-git-send-email-wei.ye@intel.com> <53D62CB70200007800026703@mail.emea.novell.com> <76A3A946BA26DE4F9D9D5090FFA4A649318AE6@SHSMSX101.ccr.corp.intel.com> <53DF56A00200007800028D19@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kevin Tian Cc: "keir@xen.org" , "ian.campbell@citrix.com" , "stefano.stabellini@eu.citrix.com" , Tim Deegan , "ian.jackson@eu.citrix.com" , "xen-devel@lists.xen.org" , "Paul.Durrant@citrix.com" , Zhiyuan Lv , Wei Ye List-Id: xen-devel@lists.xenproject.org >>> On 04.08.14 at 23:39, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> So am I reading this right that you could do with the existing >> mechanism if the limit was higher? Together with you not answering >> the question about the lack of an enforced limit in your new >> mechanism, this clearly tells me that you should use the existing one, >> raising the limit and - if necessary - dealing with the (security) fallout. >> > > essentially those pages are not contiguous and dynamic, and thus a fixed > range based structure even with a higher limitation doesn't fit here. Just > think about a structure similar to what we have done to maintain shadow > pfn is required here. A hash list is more flexible to serve such purpose. I don't follow - range sets aren't a "fixed range based structure" to me. All we impose is a limit on the number of ranges you may have in place to avoid unbounded amounts of memory being tied up by a domain, or unbounded amounts of time are spent in accessing that tree. Obviously the same would need to be done for any new mechanism, so a new mechanism is only first choice if it provides other benefits over the original one. Jan