From: Keir Fraser Subject: Re: Read-only iomem page mapping Date: Thu, 10 Aug 2006 09:57:54 +0100 Message-ID: References: <1155199554.4054.6.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1155199554.4054.6.camel@moonstone.uk.level5networks.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kieran Mansley , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/8/06 9:45 am, "Kieran Mansley" wrote: > I would like to give a domU some read-only access to an iomem page so > that it can access some hardware registers directly in a relatively > secure manner. I can get read-write access using the > DOM0_IOMEM_PERMISSION hypervisor op, and then ioremap at domU, but > neither of these present the option of it being read only. > > It should be straightforward, and possibly useful for others as well, to > extend these to have that option, but though I'd check that there isn't > some other way of achieving this already. Adding read-only iomem and ioport rangesets would be nice. -- Keir