From 5ceae97ab4601914b6267ecd2599d52c71d142b8 Mon Sep 17 00:00:00 2001 From: Tao Yuhong Date: Fri, 12 Mar 2021 07:05:31 -0500 Subject: [PATCH] DM: change 64-bit mmio address space to 256G-512G for post-launched VM DM maps 64-bit mmio BARs of vdev into 4G-5G, for post-launched VMs. At native platform, 64-bit MMIO BARs which have 39-bit address, are always mapped into 256G-512G address space. Change PCI_EMUL_MEMBASE64 to 256G, change PCI_EMUL_MEMLIMIT64 to 512G. So that the 64-bit vdev BARs of post-launched VMs have same address space with native platform. Tracked-On: #5913 Signed-off-by: Tao Yuhong Acked-by: Wang, Yu1 --- devicemodel/include/pci_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemodel/include/pci_core.h b/devicemodel/include/pci_core.h index 711c5745a..cd7df1cde 100644 --- a/devicemodel/include/pci_core.h +++ b/devicemodel/include/pci_core.h @@ -45,8 +45,8 @@ #define PCI_EMUL_ECFG_BASE 0xE0000000UL /* 3.5GB */ -#define PCI_EMUL_MEMBASE64 0x100000000UL /* 4GB */ -#define PCI_EMUL_MEMLIMIT64 0x140000000UL /* 5GB */ +#define PCI_EMUL_MEMBASE64 0x4000000000UL /* 256GB */ +#define PCI_EMUL_MEMLIMIT64 0x8000000000UL /* 512GB */ #define SOFTWARE_SRAM_MAX_SIZE 0x00800000UL #define SOFTWARE_SRAM_BASE_GPA (PCI_EMUL_MEMBASE32 - SOFTWARE_SRAM_MAX_SIZE)