From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien.grall@citrix.com (Julien Grall) Date: Mon, 30 Nov 2015 15:22:15 +0000 Subject: [PATCH v3 47/62] arm/p2m: Add helper functions to map memory regions In-Reply-To: References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> <1447753261-7552-48-git-send-email-shannon.zhao@linaro.org> Message-ID: <565C69A7.1020806@citrix.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On 27/11/15 12:04, Stefano Stabellini wrote: > On Tue, 17 Nov 2015, shannon.zhao at linaro.org wrote: >> From: Parth Dixit >> >> Create a helper function for mapping with cached attributes. >> >> Signed-off-by: Parth Dixit >> Signed-off-by: Shannon Zhao > > You might be able to use the existing guest_physmap_add_entry and > guest_physmap_remove_page for your purposes. I would rather avoid to do that, those function use the type p2m_ram_rw which imply the memory is executable. Regards, -- Julien Grall