pc: limit 64 bit hole to 2G by default

Enterprise / Virtualization / QEMU - Igor Mammedov [redhat.com] - 29 July 2013 19:33 UTC

It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is >2G. Limit it to 2G for piix and q35 by default. User may override default 64-bit PCI hole size by using "pci-hole64-size" property.

Examples:-global i440FX-pcihost.pci-hole64-size=4G

-global q35-pcihost.pci-hole64-size=4G

3984890 pc: limit 64 bit hole to 2G by default
hw/i386/pc.c | 56 +++++++++++++++-----------
hw/i386/pc_piix.c | 14 +------
hw/pci-host/piix.c | 95 ++++++++++++++++++++++++++++++++++++++++++---
hw/pci-host/q35.c | 88 ++++++++++++++++++++++++++++++++++-------
include/hw/i386/pc.h | 14 +++++--
include/hw/pci-host/q35.h | 2 +
6 files changed, 211 insertions(+), 58 deletions(-)

Upstream: git.qemu.org


  • Share