Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142881126
D31051.id96790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31051.id96790.diff
View Options
Index: usr.sbin/bhyve/pci_emul.c
===================================================================
--- usr.sbin/bhyve/pci_emul.c
+++ usr.sbin/bhyve/pci_emul.c
@@ -113,6 +113,12 @@
#define PCI_EMUL_ECFG_SIZE (MAXBUSES * 1024 * 1024) /* 1MB per bus */
SYSRES_MEM(PCI_EMUL_ECFG_BASE, PCI_EMUL_ECFG_SIZE);
+/*
+ * note:
+ * OVMF always uses 0xC0000000 as base address for 32 bit PCI MMIO. Don't
+ * change this address without changing it in OVMF.
+ */
+#define PCI_EMUL_MEMBASE32 0xC0000000
#define PCI_EMUL_MEMLIMIT32 PCI_EMUL_ECFG_BASE
static struct pci_devemu *pci_emul_finddev(const char *name);
@@ -1151,7 +1157,7 @@
int bus, slot, func, error;
pci_emul_iobase = PCI_EMUL_IOBASE;
- pci_emul_membase32 = vm_get_lowmem_limit(ctx);
+ pci_emul_membase32 = PCI_EMUL_MEMBASE32;
do_cpuid(0x80000008, regs);
cpu_maxphysaddr = 1ULL << (regs[0] & 0xff);
@@ -1266,7 +1272,7 @@
* The guest physical memory map looks like the following:
* [0, lowmem) guest system memory
* [lowmem, lowmem_limit) memory hole (may be absent)
- * [lowmem_limit, 0xE0000000) PCI hole (32-bit BAR allocation)
+ * [0xC0000000, 0xE0000000) PCI hole (32-bit BAR allocation)
* [0xE0000000, 0xF0000000) PCI extended config window
* [0xF0000000, 4GB) LAPIC, IOAPIC, HPET, firmware
* [4GB, 4GB + highmem)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 25, 10:49 AM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27936459
Default Alt Text
D31051.id96790.diff (1 KB)
Attached To
Mode
D31051: bhyve: use a fixed 32 bit BAR base address
Attached
Detach File
Event Timeline
Log In to Comment