From patchwork Mon Apr 23 05:18:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 10356151 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 522B4601D3 for ; Mon, 23 Apr 2018 05:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4379B289B2 for ; Mon, 23 Apr 2018 05:19:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38434289B4; Mon, 23 Apr 2018 05:19:44 +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=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 472F5289B2 for ; Mon, 23 Apr 2018 05:19:41 +0000 (UTC) Received: from localhost ([::1]:41002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fATt6-0005ZY-VH for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Apr 2018 01:19:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fATsC-00055E-Oh for qemu-devel@nongnu.org; Mon, 23 Apr 2018 01:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fATs8-0006tQ-PO for qemu-devel@nongnu.org; Mon, 23 Apr 2018 01:18:44 -0400 Received: from mout.web.de ([217.72.192.78]:53201) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fATs8-0006se-FK for qemu-devel@nongnu.org; Mon, 23 Apr 2018 01:18:40 -0400 Received: from [192.168.1.10] ([95.157.57.47]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LqUbl-1eWlPI2djV-00e0z1; Mon, 23 Apr 2018 07:18:37 +0200 To: Peter Maydell , qemu-devel From: Jan Kiszka Openpgp: preference=signencrypt Message-ID: <3301c5bc-7b47-1b0e-8ce4-30435057a276@web.de> Date: Mon, 23 Apr 2018 07:18:37 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K1:b+NoDn/YoYRjujp3cu1H2LSfq6/DeFB4+wm6DnYvvoRt4FN4Ho5 lHkfNK1Lp0tKXYQTXPFUQlP5x+8cUEdE2wU7xCKJ8gvYPRuXe4nFbtS7klOT1+wkM7kZvbF Rk6CfPKt6/RQL5pYEazjU0Cz+VrdnKBheTuLtNO2w0QimlQNYL66hmicr12BV6QKRZowCq+ N61IUyLkYhwYYXQNxWvCA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Z4A+7wc0wac=:FVzH1viAtcaGaCx0R56YHk wXG28qHJFacGFbDPevEIpbvxzLCjluk6qSzje4Rl9bqebwr8nkspdOGovAkncJGeB1YFKVHlu 0SCrZTqLKPKzEmpx2uqBZH+RgIE7rF62kdi7H6J9XYw7tVZ1Fh7f/kjuUf7IfRT28PEPKBDgF iggescg0rkk0/70vzAuTKbaxn6r+8fHpLzCPTYYwc1n7Ov3JpR75yTMaB4/fEBche39TOjD9z Q/oSrLf9zLRos8N06ZCsmcKEeJqq8JlpaIWkfPS4C1EaKsF8WdVp11jtG0u7O/j47iSu3PfN2 ndOkZ0t03BYRSneMKL9NZUREIeYBGhWxrW5xgpHhYMVSuro78GJE57+cIsdf0BB6+m2+pXXPM tTwx6RWiFr36ehFsCbAxCHW9IfwPxJ2ciLsR4LuW0CN9XvVM20rpK34AGwudoruFL4L5KEm82 UCYugR8PbVj1CQz2JDNAvmAzxFAy9D0dbzuigmLHfOgYwqp3L3NAWAr7di0IbphN0BY1dROst SP1wp3fTBGffmMTbzURJq0/OiOm+C8+jj7fiaGwQMcw8qNwiPki5J2ZE8qRJ+zvWboGCdnyQy xvsSL/mSVARQ/yBEfOfryO5mJeqprn+0OinFZE6xzBCzZmcwQ7U1HqhYWN+9C3d5XzEAtLZPW dQoYZWzV1TU90m/25B7qrUb/hMZnAEjBr1W+tbNtjP0LmmfyYQA9766kpHg3ELMt42I2/2NUo ZFIngWf4tQBvjA8Vd1ZfpDtrL2H5eQqneJdflH9NksuRr8MXThe0vQbVOe/Jg5zK4bxLVLpRr MVVm+FFvCNMK+WEJuDtphZUgly7cIT8bNqJidBP1fuX07irsts= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.78 Subject: [Qemu-devel] [PATCH] hw/arm/virt: Add linux,pci-domain property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Jan Kiszka This allows to pin the host controller in the Linux PCI domain space. Linux requires that property to be available consistently or not at all, in which case the domain number becomes unstable on additions/removals. Adding it here won't make a difference in practice for most setups as we only expose one controller. However, enabling Jailhouse on top may introduce another controller, and that one would like to have stable address as well. So the property is needed for the first controller as well. Signed-off-by: Jan Kiszka --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 94dcb125d3..943371b75e 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1023,6 +1023,7 @@ static void create_pcie(const VirtMachineState *vms, qemu_irq *pic) qemu_fdt_setprop_string(vms->fdt, nodename, "device_type", "pci"); qemu_fdt_setprop_cell(vms->fdt, nodename, "#address-cells", 3); qemu_fdt_setprop_cell(vms->fdt, nodename, "#size-cells", 2); + qemu_fdt_setprop_cell(vms->fdt, nodename, "linux,pci-domain", 0); qemu_fdt_setprop_cells(vms->fdt, nodename, "bus-range", 0, nr_pcie_buses - 1); qemu_fdt_setprop(vms->fdt, nodename, "dma-coherent", NULL, 0);