vga: fix vram double-mapping with -vga std and -M pc-0.12
authorAvi Kivity <avi@redhat.com>
Wed, 9 May 2012 15:23:06 +0000 (18:23 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 30 May 2012 01:19:24 +0000 (20:19 -0500)
commit8294a64d7f9ecc428cd58ba36ad0b913084a8824
tree47ce59f81adfdcade3d2eb282acac53bbfe6d974
parent1c4ad9d2b4b5f2be08588a91e4193d13cc314282
vga: fix vram double-mapping with -vga std and -M pc-0.12

With pc-0.12, we map the video RAM both through the PCI BAR (the guest does
this) and through a fixed mapping at 0xe0000000.  The memory API doesn't allow
this double map, and aborts.

Fix by using an alias.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga.c
hw/vga_int.h