From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH v3 3/3] tools: introduce parameter max_wp_ram_ranges. Date: Mon, 22 Feb 2016 17:23:20 +0000 Message-ID: <56CB4408.2040602@citrix.com> References: <1454064314-7799-1-git-send-email-yu.c.zhang@linux.intel.com> <4d9512d6068946e0921a784705f2d3f4@AMSPEX02CL03.citrite.net> <56C3092302000078000D28BE@prv-mh.provo.novell.com> <18f9277a243247739d1565f71accca8f@AMSPEX02CL03.citrite.net> <56C457F302000078000D303C@prv-mh.provo.novell.com> <56C45319.9010908@citrix.com> <81c831a07f414a70a7e40e865654a757@AMSPEX02CL03.citrite.net> <1410cf0d2aea4394a668c92277edd411@AMSPEX02CL03.citrite.net> <56CB3B3D.1020704@citrix.com> <3bf545b074104e5791a8eb6691626a50@AMSPEX02CL03.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3bf545b074104e5791a8eb6691626a50@AMSPEX02CL03.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Kevin Tian , Wei Liu , Ian Campbell , Andrew Cooper , "xen-devel@lists.xen.org" , Zhang Yu , Zhiyuan Lv , Jan Beulich , Ian Jackson , Stefano Stabellini , "Keir (Xen.org)" List-Id: xen-devel@lists.xenproject.org On 22/02/16 17:01, Paul Durrant wrote: >> What you did in an earlier version of this series (correct me if I'm >> wrong) is to make a separate hypercall for memory, but still keep using >> the same internal implementation (i.e., still having a write_dm p2m type >> and using rangesets to determine which ioreq server to give the >> notification to). But since the interface for memory looks exactly the >> same as the interface for MMIO, at some point this morphed back to "use >> xen_hvm_io_range but with a different range type (i.e., WP_MEM)". >> > > Yes, and that's now pointless since we're going to use purely p2m types for sending memory accesses to ioreq servers. > >> From an *interface* perspective that makes sense, because in both cases >> you want to be able to specify a domain, an ioreq server, and a range of >> physical addresses. I don't have any objection to the change you made >> to hvm_op.h in this version of the series. >> > > No, if we are intercepting 'memory' purely by p2m type then there is no need for the additional range type. So here seems to be the crux of our disagreement. I don't understand why you think that the WP_MEM interface described in patch 2 of this series can't be implemented using p2m types rather than rangesets. -George