]> xenbits.xensource.com Git - seabios.git/commit
limit address space used for pci devices, part two
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2024 08:44:09 +0000 (10:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2024 08:57:31 +0000 (10:57 +0200)
commitec0bc256ae0ea08a32d3e854e329cfbc141f07ad
treed9836ac25a0e56ad336c52cab5fc03188135b79a
parente5f2e4c69643bc3cd385306a9e5d29e11578148c
limit address space used for pci devices, part two

This patch changes the logic added by commit a6ed6b701f0a ("limit
address space used for pci devices.") a bit.  Further testing showed
that the limit of 46 phys-bits applies to x86_64 kernels only, for i386
kernels the limit is 44.  So change the limit from 46 to 44 for better
compatibility with i386 guests.

Also add one more condition to refine the configuration heuristic:
Apply the limit only in case the guest has less than 1 TB of memory
installed, so huge guests run without address space limits.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/pciinit.c