piix: fix 32bit pci hole
commitddaaefb4dd427d6d2e41c1cfbe0cd8d8e8d6aad9
authorGerd Hoffmann <kraxel@redhat.com>
Sat, 21 Dec 2013 02:02:50 +0000 (21 03:02 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 16:02:23 +0000 (23 18:02 +0200)
treec683b40e186673f3828076a50018661f997bce5b
parentdcc209314afdaeec42f1e2a7bbf37eec3ace23de
piix: fix 32bit pci hole

Make the 32bit pci hole start at end of ram, so all possible address
space is covered.

We used to try and make addresses aligned so they are easier to cover
with MTRRs, but since they are cosmetic on KVM, this is probably not
worth worrying about.
Of course the firmware can use less than that.  Leaving space unused is
no problem, mapping pci bars outside the hole causes problems though.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c
hw/pci-host/piix.c
include/hw/i386/pc.h