From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Re: [PATCH 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access Date: Thu, 28 Jan 2016 10:43:37 +0200 Message-ID: <56A9D4B9.6070000@bitdefender.com> References: <1453925201-15926-1-git-send-email-tlengyel@novetta.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 1aOiAc-0003Xf-Ae for xen-devel@lists.xenproject.org; Thu, 28 Jan 2016 08:43:14 +0000 Received: from smtp03.buh.bitdefender.org (unknown [10.17.80.77]) by mx-sr.buh.bitdefender.com (Postfix) with ESMTP id EE71C8052C for ; Thu, 28 Jan 2016 10:43:10 +0200 (EET) In-Reply-To: <1453925201-15926-1-git-send-email-tlengyel@novetta.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: Tamas K Lengyel , xen-devel@lists.xenproject.org Cc: Wei Liu , Ian Campbell , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , Stefano Stabellini , Jan Beulich , Keir Fraser List-Id: xen-devel@lists.xenproject.org On 01/27/2016 10:06 PM, Tamas K Lengyel wrote: > The altp2m subsystem in its current form uses its own HVMOP hypercall to set > mem_access permissions, duplicating some of the code already present for > setting regular mem_access permissions. In this patch we consolidate the two, > deprecate the HVMOP hypercall and update the corresponding tools. > > Signed-off-by: Tamas K Lengyel > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > Cc: Razvan Cojocaru > Cc: Stefano Stabellini > Cc: Keir Fraser > Cc: Jan Beulich > Cc: Andrew Cooper > Cc: George Dunlap > --- > tools/libxc/include/xenctrl.h | 5 +- > tools/libxc/xc_altp2m.c | 25 ------ > tools/libxc/xc_mem_access.c | 14 +-- > tools/tests/xen-access/xen-access.c | 53 ++++------- > xen/arch/arm/p2m.c | 9 +- > xen/arch/x86/hvm/hvm.c | 9 -- > xen/arch/x86/mm/p2m.c | 169 ++++++++++++++++-------------------- > xen/common/mem_access.c | 2 +- > xen/include/asm-x86/p2m.h | 4 - > xen/include/public/hvm/hvm_op.h | 15 +--- > xen/include/public/memory.h | 3 + > xen/include/xen/p2m-common.h | 3 +- > 12 files changed, 115 insertions(+), 196 deletions(-) For the part of the code in the files we're maintaining: Acked-by: Razvan Cojocaru Thanks for doing this, as also discussed in private I think something along these lines is a much needed change here. Thanks, Razvan