Skip to content

Commit

Permalink
x86/jailhouse: Respect pci=lastbus command line settings
Browse files Browse the repository at this point in the history
Limiting the scan width to the known last bus via the command line can
accelerate the boot noteworthy.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jailhouse <jailhouse-dev@googlegroups.com>
Link: https://lkml.kernel.org/r/51f5fe62-ca8f-9286-5cdb-39df3fad78b4@siemens.com
  • Loading branch information
Jan Kiszka authored and Thomas Gleixner committed Jan 20, 2018
1 parent 11f19ec commit 3b42349
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86/kernel/jailhouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3b42349

Please sign in to comment.