From: Ian Campbell Subject: Re: xen/arm: How to hide console UART from dom0? Date: Fri, 31 May 2013 14:04:48 +0100 Message-ID: <1370005488.5199.135.camel@zakaz.uk.xensource.com> References: <1369998447.5199.89.camel@zakaz.uk.xensource.com> <51A89CA7.3010606@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51A89CA7.3010606@citrix.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: Julien Grall Cc: Stefano Stabellini , xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2013-05-31 at 13:50 +0100, Julien Grall wrote: > > I tried seeing if I could remember the name of the console DT device but > > in dt_uart_init I get: > > dt_node_full_name > > => /smb/motherboard/iofpga@3,00000000/uart@0c000 > > dt_node_name => uart > > Neither of which match the required "uart@0c000" which > > fdt_next_dom0_node has in its hand. > > By default, the part after @ is removed. If needed, it's easily to > provide a pointer to "uart@0c000" but I'm not sure it's usefull for us. Other than for this purpose I expect not, lets not worry about it. > > Julien, I know you have longer term plans to create dom0's device tree > > from Xen's unflattened device tree using the used_by field but I suppose > > that won't be happening for 4.3 at this stage? Is there a better short > > term hack we can make here? How do you work around this issue? > > > Right. It's possible to add a property: status = "disabled"; on the > specific node (here the UART). Linux will interpret this property and > won't use the node. > For the moment, this property is not used by Xen so you can directly add > it on your DTS. Thanks, this will suffice as long as we do proper construction of the dom0 fdt before making Xen obey this property ;-) Ian.