From: Tim Deegan Subject: Re: [PATCH 18/38] arm: implement vpl011 (UART) emulator. Date: Thu, 7 Jun 2012 11:18:26 +0100 Message-ID: <20120607101826.GJ70339@ocelot.phlegethon.org> References: <1338565113.17466.141.camel@zakaz.uk.xensource.com> <1338565207-2888-1-git-send-email-ian.campbell@citrix.com> <1338565207-2888-18-git-send-email-ian.campbell@citrix.com> <20120607092951.GE70339@ocelot.phlegethon.org> <1339061691.15265.49.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1339061691.15265.49.camel@zakaz.uk.xensource.com> 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: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org At 10:34 +0100 on 07 Jun (1339065291), Ian Campbell wrote: > On Thu, 2012-06-07 at 10:29 +0100, Tim Deegan wrote: > > > +int domain_uart0_init(struct domain *d) > > > +{ > > > + int rc; > > > + if ( d->domain_id == 0 ) > > > + return 0; > > > > Why? There's no equivalent gate on the MMIO handlers. > > dom0 has the actual uart mapped at this address, not the emulated one. > Maybe that should be written at the caller instead? Yes - ideally in the same place that puts the MMIO hooks in that will call the other functions in this file. Tim.