From: Ian Campbell Subject: Re: [PATCH V1 17/29] xen/arm: Mark each device used by Xen as disabled in DOM0 FDT Date: Mon, 9 Sep 2013 12:37:00 +0100 Message-ID: <1378726620.19967.70.camel@kazak.uk.xensource.com> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> <1377701263-3319-18-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1377701263-3319-18-git-send-email-julien.grall@linaro.org> 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@eu.citrix.com, andre.przywara@linaro.org, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote: > When a device has a property status with disabled inside, Linux will not use > the device. Do we not filter such devices out already? Or did the previous patch remove that functionality? In which case is there a bisection hazard here? Why is it preferred to leave the device with disabled in it instead of removing it? (Can this go in the changelog please) I think I've asked before, but is the handling of status = disabled generic and therefore reliable? > > Signed-off-by: Julien Grall > --- > xen/arch/arm/domain_build.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c > index 76decf4..d56bc70a 100644 > --- a/xen/arch/arm/domain_build.c > +++ b/xen/arch/arm/domain_build.c > @@ -208,6 +208,14 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, > return res; > } > > + /* Disable all devices used by Xen */ > + if ( dt_device_used_by(np) == DOMID_XEN ) > + { > + res = fdt_property(kinfo->fdt, "status", "disabled", 8 + 1); > + if ( res ) > + return res; > + } > + > /* > * XXX should populate /chosen/linux,initrd-{start,end} here if we > * have module[2]