From patchwork Wed Aug 28 14:47:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19580 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5066925E58 for ; Wed, 28 Aug 2013 14:48:31 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id hu16sf838346qab.10 for ; Wed, 28 Aug 2013 07:48:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=aLBv9QgAaW801rUJ7y+G5BG+A4WAmdr1lNSNCKbxTFY=; b=Wcis7lxg4RAJqkMK3t2IN/Z5OPw5I5B5uH95oNcLaTwzKNV1opOzlRety8IRJpZkfu qFQt3FuB9ybNCGwSiJDC+m3rgNsuZg04iM8XBCsWS2E0hkfB88exludr/Zc/0B5rAhMF yp1DJTVbFXiKP0N5vuGyx+wEH9VZ1E3jCjtL45Rhl6qeAtX0jh8KZlcO9LYbyxXhmPEB FNlzWczC/QKlAsWI+6doLKNHNgdBXuOLyxzxKnH0jsqNACR6wLFzT9IFREENC3o17ncD iIYSteb56JYI4YjBBS6lsCpWAnoGCVMtc+R6lEYxhsL77zThS0FSOAuE72nqBURCCInC QFyA== X-Received: by 10.236.114.36 with SMTP id b24mr5125360yhh.24.1377701311101; Wed, 28 Aug 2013 07:48:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.85.134 with SMTP id h6ls366361qez.10.gmail; Wed, 28 Aug 2013 07:48:30 -0700 (PDT) X-Received: by 10.52.101.166 with SMTP id fh6mr1688968vdb.30.1377701310924; Wed, 28 Aug 2013 07:48:30 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id wh9si6602194vcb.93.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id 15so4431822vea.29 for ; Wed, 28 Aug 2013 07:48:30 -0700 (PDT) X-Gm-Message-State: ALoCoQlA+/1s9xe4aFa/mBSFbUF5iZxxQ8mWJRivvLvvKGAnmz+MDcSkuhbPiXqzGKlgG5yP4H3m X-Received: by 10.52.99.66 with SMTP id eo2mr10492029vdb.18.1377701310843; Wed, 28 Aug 2013 07:48:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp359960vcz; Wed, 28 Aug 2013 07:48:30 -0700 (PDT) X-Received: by 10.194.122.99 with SMTP id lr3mr20037638wjb.21.1377701309624; Wed, 28 Aug 2013 07:48:29 -0700 (PDT) Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by mx.google.com with ESMTPS id pf5si9552480wjb.13.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:29 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.170 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.170; Received: by mail-we0-f170.google.com with SMTP id w62so5360196wes.29 for ; Wed, 28 Aug 2013 07:48:29 -0700 (PDT) X-Received: by 10.194.240.164 with SMTP id wb4mr2707451wjc.70.1377701308991; Wed, 28 Aug 2013 07:48:28 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id a8sm5590498wie.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:28 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, andre.przywara@linaro.org, Julien Grall Subject: [PATCH V1 17/29] xen/arm: Mark each device used by Xen as disabled in DOM0 FDT Date: Wed, 28 Aug 2013 15:47:31 +0100 Message-Id: <1377701263-3319-18-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When a device has a property status with disabled inside, Linux will not use the device. 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]