Don't explicitly set BAR values for VMware VGA
commit7dcca169151e3592c61f891cba7a72ad8ea29dfc
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 Feb 2008 19:40:07 +0000 (22 13:40 -0600)
committerAvi Kivity <avi@qumranet.com>
Sun, 24 Feb 2008 08:28:28 +0000 (24 10:28 +0200)
tree5fce134931479627f20d36269482268b4c5e45ae
parent68784d596135f37b9eb5a7038be308fff448a3d4
Don't explicitly set BAR values for VMware VGA

Right now we set explict base addresses for the PCI IO regions in the VMware
VGA device.  We don't register the second region at all and instead directly
map the physical memory.

The problem is, the addresses we're setting in the BAR is not taken into
account in the e820 mapping.

This patch removes the explicit BARs and registers the second region through
the normal PCI code.

I've only tested with a Linux guest and the open source VMware VGA driver.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/vmware_vga.c