Skip to content

64bit PCI BARs allocations

Alexey Korolev qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add new range above 4GB in _CRS tablesrc/acpi-dsdt.dsl src/acpi-dsdt.hex src/config.h+65 -100 replies
2/3Add a new PCI region type to supports 64 bit rangessrc/pci.h src/pciinit.c+15 -149 replies
3/3Changes related to secondary buses and 64bit regionssrc/pciinit.c+48 -2114 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [Seabios] [PATCH 0/3] 64bit PCI BARs allocations

Hi,

There were a number of requests about support of 64bit PCI BAR allocations.

Also we have observed the issue on guests with older linux version (2.6.18): if we have a 64bit BAR allocated within first 4GB, the OS may hang during start process. (I guess it is an OS bug, but we need to take care of this).

This patch addresses these two issues and allows 64bit BARs to be allocated in ranges above 4GB.
Patch consists of three parts:
1. Add new range above 4GB in _CRS table to let Windows 2008 work properly. Thanks a lot to Michael S. Triskin for this brilliant idea.
2. Added new PCI_REGION_TYPE_PREFMEM_64 region type in pciinit and changed types of variables.
3. Take care about PCI devices with 64bit BARs on secondary buses.

Patches have been tested on several configurations which includes linux 2.6.18 - 3.0 & windows 2008. Everything works quite well.