From: Tim Deegan Subject: Re: [PATCH v2 4/4] x86: fix pinned cache attribute handling Date: Thu, 3 Apr 2014 12:30:23 +0200 Message-ID: <20140403103023.GG38209@deinos.phlegethon.org> References: <533583C5020000780000367B@nat28.tlf.novell.com> <533584D60200007800003697@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WVeug-0004t6-7m for xen-devel@lists.xenproject.org; Thu, 03 Apr 2014 10:30:26 +0000 Content-Disposition: inline In-Reply-To: <533584D60200007800003697@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel , Kevin Tian , Keir Fraser , Eddie Dong , Jun Nakajima List-Id: xen-devel@lists.xenproject.org At 13:19 +0000 on 28 Mar (1396009142), Jan Beulich wrote: > - make sure UC- is only used for PAT purposes (MTRRs and hence EPT > don't have this type) > - add order input to "get", and properly handle conflict case (forcing > an EPT page split) > - properly detect (and refuse) overlaps during "set" > - properly use RCU constructs > - support deleting ranges through a special type input to "set" > - set ignore-PAT flag in epte_get_entry_emt() when "get" succeeds > - set "get" output to ~0 (invalid) rather than 0 (UC) on error (the > caller shouldn't be looking at it anyway) > - move struct hvm_mem_pinned_cacheattr_range from header to C file > (used only there) > > Note that the code (before and after this change) implies the GFN > ranges passed to the hypercall to be inclusive, which is in contrast > to the sole current user in qemu (all variants). It is not clear to me > at which layer (qemu, libxc, hypervisor) this would best be fixed. > > Signed-off-by: Jan Beulich Reviewed-by: Tim Deegan