[RFC PATCH 4/4] vga: flag vram as uncached

Andrew Jones
2015-03-18T19:05:23Z

Video RAM is typically mapped as uncached by guests. Flag it as
such.

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
hw/display/vga.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/hw/display/vga.c b/hw/display/vga.c
index c0f7b343bbab5..5c8c249a8d780 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -2143,6 +2143,7 @@ void vga_common_init(VGACommonState *s, Object *obj, bool global_vmstate)
s->is_vbe_vmstate = 1;
memory_region_init_ram(&s->vram, obj, "vga.vram", s->vram_size,
&error_abort);
+ memory_region_set_uncached(&s->vram);
vmstate_register_ram(&s->vram, global_vmstate ? NULL : DEVICE(obj));
xen_register_framebuffer(&s->vram);
s->vram_ptr = memory_region_get_ram_ptr(&s->vram);
--
1.8.3.1