From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v3 00/15] Mem_event and mem_access for ARM Date: Mon, 01 Sep 2014 15:56:59 -0400 Message-ID: <5404CF8B.8030603@linaro.org> References: <1409581329-2607-1-git-send-email-tklengyel@sec.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409581329-2607-1-git-send-email-tklengyel@sec.in.tum.de> 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.xen.org Cc: ian.campbell@citrix.com, tim@xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com, andres@lagarcavilla.org, jbeulich@suse.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org Hello Tamas On 01/09/14 10:21, Tamas K Lengyel wrote: > The ARM virtualization extension provides 2-stage paging, a similar mechanisms > to Intel's EPT, which can be used to trace the memory accesses performed by > the guest systems. This series moves the mem_access and mem_event codebase > into Xen common, performs some code cleanup and architecture specific division > of components, then sets up the necessary infrastructure in the ARM code > to deliver the event on R/W/X traps. Finally, we turn on the compilation of > mem_access and mem_event on ARM and perform the necessary changes to the > tools side. > > This version of the series has been fully tested and is functional on an > Arndale board. domain_get_maximum_gpfn used in common code is defined as -ENOSYS. I've sent a patch a month ago on the mailing list about it (see patch below). Ian: Can you reconsider to apply the patch? (I will also reply to the thread). FYI, I have a patch to fix xc_dom_gnttab_hvm_seed in libxc. I will try to send it next week. Regards, ==================================================================== commit 7aa592b7a6f357b0003cd523e446d9d91dc96730 Author: Julien Grall Date: Mon Jun 30 17:21:13 2014 +0100 xen/arm: Implement domain_get_maximum_gpfn The function domain_get_maximum_gpfn is returning the maximum gpfn ever mapped in the guest. We can use d->arch.p2m.max_mapped_gfn for this purpose. Signed-off-by: Julien Grall diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 0a243b0..e4a1e5e 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -954,7 +954,7 @@ int page_is_ram_type(unsigned long mfn, unsigned long mem_type) unsigned long domain_get_maximum_gpfn(struct domain *d) { - return -ENOSYS; + return d->arch.p2m.max_mapped_gfn; } void share_xen_page_with_guest(struct page_info *page, -- Julien Grall