aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-09-01 12:19:31 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-03-20 15:56:35 +0100
commitdf9de85de43844c7cf3dc78399ceee0f8b1005bb (patch)
tree08eb2046d18d84431fd74c5beb33624427d2f229
parentf4c6e4c19daf3deac2d7fc3288db5294aba955ad (diff)
downloadseabios-pci-4g-map.tar.gz
pci: only migrate large 64bit bars above 4Gpci-4g-map
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--src/fw/pciinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
index c0634bcb..680b7786 100644
--- a/src/fw/pciinit.c
+++ b/src/fw/pciinit.c
@@ -761,6 +761,8 @@ static void pci_region_migrate_64bit_entries(struct pci_region *from,
continue;
if (entry->dev->class == PCI_CLASS_SERIAL_USB)
continue;
+ if (entry->size < (1<<21)) // 2M == hugepage size
+ continue;
// Move from source list to destination list.
hlist_del(&entry->node);
hlist_add(&entry->node, last);