* [Qemu-devel] [6854] temporarily disable logging around pci config writes (Avi Kivity)
@ 2009-03-13 18:11 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-03-13 18:11 UTC (permalink / raw)
To: qemu-devel
Revision: 6854
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6854
Author: aliguori
Date: 2009-03-13 18:11:21 +0000 (Fri, 13 Mar 2009)
Log Message:
-----------
temporarily disable logging around pci config writes (Avi Kivity)
A pci config write may remap the vga linear frame buffer, confusing the
memory slot dirty logging logic.
Fixed Windows with -vga std.
Signed-off-by: Avi Kivity <avi@redhat.com>
Sigend-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
branches/stable_0_10_0/hw/vga.c
Modified: branches/stable_0_10_0/hw/vga.c
===================================================================
--- branches/stable_0_10_0/hw/vga.c 2009-03-13 18:11:17 UTC (rev 6853)
+++ branches/stable_0_10_0/hw/vga.c 2009-03-13 18:11:21 UTC (rev 6854)
@@ -2482,6 +2482,17 @@
return 0;
}
+static void pci_vga_write_config(PCIDevice *d,
+ uint32_t address, uint32_t val, int len)
+{
+ PCIVGAState *pvs = container_of(d, PCIVGAState, dev);
+ VGAState *s = &pvs->vga_state;
+
+ vga_dirty_log_stop(s);
+ pci_default_write_config(d, address, val, len);
+ vga_dirty_log_start(s);
+}
+
int pci_vga_init(PCIBus *bus, uint8_t *vga_ram_base,
unsigned long vga_ram_offset, int vga_ram_size,
unsigned long vga_bios_offset, int vga_bios_size)
@@ -2492,7 +2503,7 @@
d = (PCIVGAState *)pci_register_device(bus, "VGA",
sizeof(PCIVGAState),
- -1, NULL, NULL);
+ -1, NULL, pci_vga_write_config);
if (!d)
return -1;
s = &d->vga_state;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-13 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 18:11 [Qemu-devel] [6854] temporarily disable logging around pci config writes (Avi Kivity) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).