|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 08/11] cirrus_vga: reset lfb_addr after a pci config
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
If the cirrus_vga PCI BAR is unmapped than we should not only reset
map_addr but also lfb_addr, otherwise we'll keep trying to map
the old lfb_addr in map_linear_vram.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Acked-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
Signed-off-by: Alexander Graf <agraf@xxxxxxx>
---
hw/cirrus_vga.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 722cac7..3c5043e 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -3088,8 +3088,11 @@ static void pci_cirrus_write_config(PCIDevice *d,
CirrusVGAState *s = &pvs->cirrus_vga;
pci_default_write_config(d, address, val, len);
- if (s->vga.map_addr && d->io_regions[0].addr == PCI_BAR_UNMAPPED)
+ if (s->vga.map_addr && d->io_regions[0].addr == PCI_BAR_UNMAPPED) {
s->vga.map_addr = 0;
+ s->vga.lfb_addr = 0;
+ s->vga.lfb_end = 0;
+ }
cirrus_update_memory_access(s);
}
--
1.6.0.2
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PULL] Xen Patch Queue, Alexander Graf
- [Xen-devel] [PATCH 09/11] xen: only track the linear framebuffer, Alexander Graf
- [Xen-devel] [PATCH 01/11] xen: Add xc_domain_add_to_physmap to xen_interface., Alexander Graf
- [Xen-devel] [PATCH 08/11] cirrus_vga: reset lfb_addr after a pci config write if the BAR is unmapped,
Alexander Graf <=
- [Xen-devel] [PATCH 04/11] xen: remove qemu_map_cache_unlock, Alexander Graf
- [Xen-devel] [PATCH 10/11] xen: fix interrupt routing, Alexander Graf
- [Xen-devel] [PATCH 05/11] xen: remove xen_map_block and xen_unmap_block, Alexander Graf
- [Xen-devel] [PATCH 03/11] xen: fix qemu_map_cache with size != MCACHE_BUCKET_SIZE, Alexander Graf
- [Xen-devel] [PATCH 02/11] xen: Introduce VGA sync dirty bitmap support, Alexander Graf
- [Xen-devel] [PATCH 07/11] xen: mapcache performance improvements, Alexander Graf
- [Xen-devel] [PATCH 06/11] exec.c: refactor cpu_physical_memory_map, Alexander Graf
|
|
|
|
|