[SeaBIOS] [PATCH] pci: panic when out of bus numbers

Marcel Apfelbaum marcel at redhat.com
Mon Jan 4 13:26:15 CET 2016


On 01/04/2016 02:19 PM, Gerd Hoffmann wrote:
> On Mo, 2016-01-04 at 13:43 +0200, Marcel Apfelbaum wrote:
>> Currently the bios goes into an endless loop if more than
>> 255 PCI buses are requested.

Hi Gerd,
Thanks for looking into this.

>
> Given the bus number register is 8bit I'm wondering whenever this is a
> valid hardware configuration in the first place?

For sure no :), however we do have a possible endless loop
and maybe is cleaner to panic. (no matter who is "responsible")

>
> In case it isn't I think qemu should throw an error instead if you try
> to create a vm with more than 255 pci busses.
>

I suppose it could go into QEMU too, I'll give it a try.
Thanks,
Marcel


> cheers,
>    Gerd
>




More information about the SeaBIOS mailing list