From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: run time memory trap question Date: Mon, 17 Feb 2014 14:16:36 +0000 Message-ID: <530219C4.3050304@linaro.org> References: <5301FA5F.8020602@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrii Tseglytskyi Cc: Stefano Stabellini , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 02/17/2014 02:06 PM, Andrii Tseglytskyi wrote: > Hi Julien, Hi Andrii, > > > Can anyone clarify - is it possible to make a run time memory trap in > > Xen hypervisor? > > I guess you are talking about ARM? If so, it's not possible right now. > > > Does it mean, that it is possible on x86 ? Yes, you can look at register_io_handler in xen/arch/x86/hvm/intercept.c It's used a static array, but I don't think this is the solution for ARM. We don't know in advance the maximum number of MMIO region to handle. > > I think yes, we might need that for a couple of new features in Xen such > as: clock drivers and multiple devices in a same page (see UARTs on > cubieboard 2). > > > This sounds good. For now I need this or similar solution for my > development. I'll try to make it generic and post it to this list as > soon as it is ready. Great, thank you. Regards, -- Julien Grall