From: "Jan Beulich" Subject: Re: Sharing MMIO page with DomU on a system with no IOMMU Date: Tue, 16 Oct 2012 08:55:34 +0100 Message-ID: <507D2F1602000078000A19BA@nat28.tlf.novell.com> References: <507C3EE9.9040806@gmail.com> <507D241302000078000A198A@nat28.tlf.novell.com> <1350371955.14440.11.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1350371955.14440.11.camel@dagon.hellion.org.uk> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Martin Roth , Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 16.10.12 at 09:19, Ian Campbell wrote: > On Tue, 2012-10-16 at 08:08 +0100, Jan Beulich wrote: >> >>> On 15.10.12 at 18:50, Martin Roth wrote: >> > I'm trying to share an MMIO page from Dom0 running linux with a DomU >> > running an RTOS so that I can access the GPIO registers directly. The >> > system I need to get this working on does not have an IOMMU. I'm aware >> > of the security issues of sharing this area, but don't believe it's an >> > issue in this case. I've got a Linux module set up and can share memory >> > between the two domains using the grant table, but I haven't been able >> > to get this to work for the MMIO page. >> > >> > Can anyone give me a pointer on how I should go about doing this? I >> > need the area to actually be shared between both domains, not simply >> > owned by the RTOS. >> >> Looks like you have to assign the PCI device providing the GPIOs >> to the guest, as there doesn't currently appear to be a way to >> allow guest access to individual MMIO pages (lacking the MMIO >> counterpart to the iports= and irqs= domain config settings). >> >> Ian, Ian - am I overlooking something? > > iomem= support was committed to xl in xen-unstable last week or the week > before. I think it already existed in xend. I fail to spot anything like that in xend - the only use of domain_iomem_permission() is in server\pciif.py afaics. Jan