From 9d4cc5c11d5dd0d2c26df6d99350955df0630f5f Mon Sep 17 00:00:00 2001 From: Anitha Chrisanthus Date: Tue, 19 Jun 2018 06:03:11 -0700 Subject: [PATCH] dm: Change the PCI_EMUL_MEMBASE64 to workable address. To enable GPU passthru, BAR2 allocation had problems when the allocation is above the 4GB memory.This change is to accomodate the 256MB aperture allocation in BAR2 to a more managable address. v2: changed the MEMBASE64 address instead of increasing the mem_size. Signed-off-by: Anitha Chrisanthus Reviewed-by: Gong Zhipeng --- devicemodel/hw/pci/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemodel/hw/pci/core.c b/devicemodel/hw/pci/core.c index 848d14e36..d88d60180 100644 --- a/devicemodel/hw/pci/core.c +++ b/devicemodel/hw/pci/core.c @@ -96,8 +96,8 @@ SYSRES_MEM(PCI_EMUL_ECFG_BASE, PCI_EMUL_ECFG_SIZE); #define PCI_EMUL_MEMLIMIT32 PCI_EMUL_ECFG_BASE -#define PCI_EMUL_MEMBASE64 0xD000000000UL -#define PCI_EMUL_MEMLIMIT64 0xFD00000000UL +#define PCI_EMUL_MEMBASE64 0x7000000000UL +#define PCI_EMUL_MEMLIMIT64 0x8D00000000UL static struct pci_vdev_ops *pci_emul_finddev(char *name); static void pci_lintr_route(struct pci_vdev *dev);