Received: by 10.223.176.46 with SMTP id f43csp803024wra; Fri, 19 Jan 2018 02:07:58 -0800 (PST) X-Google-Smtp-Source: ACJfBotY7WmWNHOer876uaDXY86VOyGc0LinGFOu3erDkZa+Q7Yp2TmJejmorA1iK8wxYDP9Kp9J X-Received: by 10.99.166.18 with SMTP id t18mr9579022pge.42.1516356478838; Fri, 19 Jan 2018 02:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516356478; cv=none; d=google.com; s=arc-20160816; b=dDUwAZO+xqqDia3pnWfj6RtJQ8pUbr3M9Es3HREcSz13/ygUnoJ6jr5yGcSGtIvwQH 0iEmI5TbF5y9caNT7Zujhvnm6mZ4FZwNuO+2w8tkTKKevNhwYQrNpSem/4geNI8XjoXt ii5f+nRaNC3HhTGT5VSJcyRvkMFEmNKZrWYBQki0wFCppg4JEjZLSliklFdzWJSXea1b LG21ekbWYtLA5Ai/a5XqeFDvIg2vcG9EeYOiGA9tQqJQ3JdCnotUr+hFwTkLmExwbqn1 IbmeMVGlDPVhkACFXVdwSph8HfiDAV3VQLnVIWZZpNX9VXCaBI5T3hEvFEsspcyks+O1 MQMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=WZXKXLyFCet3ZrYwqBspx+xBdTSasQeDZ7wekVcUxzY=; b=U/m41x34cMg/9fv+J8OzidHzagyY8hWlIktlhQF2fqX+W7KG+V1Rb8pdMPRFWEOapz FLlxvpkAgEXm7Tgr/KHWiL5Wb7VqsswP2CGcFMwIO19WqchsahKeAOE6xp22iiSsYhAR RrPLS5tqYW/MLAJ4Wh9d4KTBQgBiLr0qPWcEzmvExHZZ3vwcgCL/KLufiobCyOpqptoC uTlqnmdOhBXm5gRzvg5ccxD32qoizIfmp6G1h06aHxeWPifsz574iIBM7YqqgTwyqP23 9Zu0BJ34ksUVFmrJDtJlo4tHK86z0ZYkiIxyouIXm2R+omH3KhAPw0CLRZNZarNSWnZo vZIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h190si8089030pge.146.2018.01.19.02.07.44; Fri, 19 Jan 2018 02:07:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755545AbeASKGs (ORCPT + 99 others); Fri, 19 Jan 2018 05:06:48 -0500 Received: from david.siemens.de ([192.35.17.14]:57415 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755447AbeASKGj (ORCPT ); Fri, 19 Jan 2018 05:06:39 -0500 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w0JA6Wma015061 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jan 2018 11:06:32 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.0.175]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w0JA6VFo024187; Fri, 19 Jan 2018 11:06:31 +0100 To: x86 , Thomas Gleixner Cc: Jailhouse , "H. Peter Anvin" , Ingo Molnar , Linux Kernel Mailing List From: Jan Kiszka Subject: [PATCH] x86/jailhouse: Respect pci=lastbus command line settings Message-ID: <51f5fe62-ca8f-9286-5cdb-39df3fad78b4@siemens.com> Date: Fri, 19 Jan 2018 11:06:30 +0100 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-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Limiting the scan width to the known last bus via the command line can accelerate the boot noteworthy. Signed-off-by: Jan Kiszka --- arch/x86/kernel/jailhouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index 2b7ebbe9043d..b68fd895235a 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -119,8 +119,10 @@ static int __init jailhouse_pci_arch_init(void) /* * There are no bridges on the virtual PCI root bus under Jailhouse, * thus no other way to discover all devices than a full scan. + * Respect any overrides via the command line, though. */ - pcibios_last_bus = 0xff; + if (pcibios_last_bus < 0) + pcibios_last_bus = 0xff; return 0; }