From patchwork Wed May 10 14:03:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Tyshchenko X-Patchwork-Id: 9719897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B9D46035D for ; Wed, 10 May 2017 14:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4206D28609 for ; Wed, 10 May 2017 14:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 349AF2860D; Wed, 10 May 2017 14:05:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE81E28602 for ; Wed, 10 May 2017 14:05:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8SDT-0007Fk-QW; Wed, 10 May 2017 14:03:47 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8SDS-0007Cx-RB for xen-devel@lists.xenproject.org; Wed, 10 May 2017 14:03:46 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id F5/AA-02189-2CD13195; Wed, 10 May 2017 14:03:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRWlGSWpSXmKPExsXiVRvkpHtQVjj S4N1tJYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNePBys8sBRvYK6Z+3M7ewPiDtYuRi0NIYCqj xImv21hAHBaBlywSZ3cvBstICPSzShy5cBHI4QRy4iT6Vj9ihrDLJU5+XsMCYgsJKEm83rmZC WLULCaJifPuMYIk2AQMJPa/e8IOYosAFd1bNZkJxGYGau6ZuYyti5GDQ1ggQeLtOz4Qk0VAVW LKdn2QCl4BF4mLa5oYIVbJSdw81wm2lhMovuP1Hai1zhL/P35nncAosICRYRWjenFqUVlqka6 ZXlJRZnpGSW5iZo6uoYGxXm5qcXFiempOYlKxXnJ+7iZGYFjVMzAw7mC80uZ8iFGSg0lJlFd3 l1CkEF9SfkplRmJxRnxRaU5q8SFGGQ4OJQneCzLCkUKCRanpqRVpmTnAAIdJS3DwKInwHpUAS vMWFyTmFmemQ6ROMRpzzLn39T0Tx6OVP94zCbHk5eelSonzdoFMEgApzSjNgxsEi7xLjLJSwr yMDAwMQjwFqUW5mSWo8q8YxTkYlYR5p4JM4cnMK4Hb9wroFCagUwIZBEBOKUlESEk1MJbuf1g QJp+UoVU3OVs/enlQCHPyd4bVs68sLOFpyWn2Od9lmFsfuvdZucYmDu6s+gfNzNHqDQYPzvvy dtWlf15v+XL702QrpsIvuVeND+zo+Mq89zev79OYtYL9P1pr35z2O9fvYXj5j/N7h3N793cuv PinM2PewR2M/HMC52p7ZRisZxd5rcRSnJFoqMVcVJwIAOjW8wa3AgAA X-Env-Sender: olekstysh@gmail.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1494425025!44212960!1 X-Originating-IP: [74.125.82.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 45194 invoked from network); 10 May 2017 14:03:45 -0000 Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by server-9.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 10 May 2017 14:03:45 -0000 Received: by mail-wm0-f66.google.com with SMTP id u65so44308wmu.3 for ; Wed, 10 May 2017 07:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+oRU0otP4U5MbJMG+H/i6YFv7aPtYnCHblgvn23gu/o=; b=Urwi2ARRXT9huqIMUyeYeFZ3810jpDsxWeBrGdulgoawvo6HpIFx0IelU6FVNGIp8u Jts6uFfFthVx/7YBTnU2uHmwYGHPrcrwmrXsnCiaQSuKiA8WGRV7GkFb2SHjZzGt+dPi b0dkY/HP1b1mPpyxwAeRATEVwnI9Zjdqinz/+irMtBRathvEh5/1BHqI0ngW41cZvDVI 0mn4IZQNFQkBvUSQg4grJkUazcDTfZwuB9XdSvkoKL463w5TKMp+i9RnmlJw3l5VTpg/ 3x85y2e7KtntjJ7pg3hJawL/weir2JTliPzAnTp14uuiOUYpHEnZ6hOiWc4RPtI8jnAp PGAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+oRU0otP4U5MbJMG+H/i6YFv7aPtYnCHblgvn23gu/o=; b=K6xtID4Oze8ql8uOcNY338jACHF3B4qsMzTt5hhW0/UbLm5r/klWn8vGgrbBN4XOu0 16NgkcTL7gUN6zV2vz0rYsng9W82dU/Tfd9vOfDAKrHq+tRCSFe1B7drZkH4iJvRaedm 67aJwgfJIR4N/r5UhH1KT5l1WUlNxvarxPWS+Ty470CGV83oWqi+itF0YGyGlGyW747l c2KXm7taIPv/qJe1i1T+xbxkm/boMKooCUoEygLETx8BUgy7rggeWjLhByMaog4OqrQj qTDEM7WHqnBxQ6OjR6JWS1rIm+oqoU50hwmDKzJAJ/NhVWHpb5tgUT1PDiFDgBuGJsKD Jl7w== X-Gm-Message-State: AODbwcAhDQeLelgY/PgQVCf0uCr0CKUuniJuyzq+JLwv564499VWOOB2 lDCgTMWDqnmryw== X-Received: by 10.28.6.199 with SMTP id 190mr1221253wmg.15.1494425025153; Wed, 10 May 2017 07:03:45 -0700 (PDT) Received: from otyshchenko.kyiv.epam.com (ll-54.209.223.85.sovam.net.ua. [85.223.209.54]) by smtp.gmail.com with ESMTPSA id c34sm3378304wrc.7.2017.05.10.07.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 May 2017 07:03:44 -0700 (PDT) From: Oleksandr Tyshchenko To: xen-devel@lists.xenproject.org Date: Wed, 10 May 2017 17:03:14 +0300 Message-Id: <1494424994-26232-11-git-send-email-olekstysh@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494424994-26232-1-git-send-email-olekstysh@gmail.com> References: <1494424994-26232-1-git-send-email-olekstysh@gmail.com> Cc: wei.liu2@citrix.com, julien.grall@arm.com, sstabellini@kernel.org, ian.jackson@eu.citrix.com, jbeulich@suse.com Subject: [Xen-devel] [PATCH v1 10/10] xen/arm: domain_build: Don't expose the "iommus" property to the guest X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Tyshchenko We don't passthrough IOMMU device to DOM0 even if it is not used by Xen. Therefore exposing the property that describes the IOMMU master interfaces of the device does not make any sense. Signed-off-by: Oleksandr Tyshchenko --- xen/arch/arm/domain_build.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 3abacc0..2defb60 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -432,6 +432,10 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, continue; } + /* Don't expose the property "iommus" to the guest */ + if ( dt_property_name_is_equal(prop, "iommus") ) + continue; + res = fdt_property(kinfo->fdt, prop->name, prop_data, prop_len); if ( res )