[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume |
Date: |
Thu, 19 Jan 2012 11:56:19 +0000 |
From: Anthony PERARD <address@hidden>
When resuming we shouldn't set the videoram to 0xff considering that we
are about to read it from the savefile.
Signed-off-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>
---
hw/cirrus_vga.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index f7b1d3d..eec2fc0 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -32,6 +32,7 @@
#include "console.h"
#include "vga_int.h"
#include "loader.h"
+#include "sysemu.h"
/*
* TODO:
@@ -2760,9 +2761,11 @@ static void cirrus_reset(void *opaque)
}
s->vga.cr[0x27] = s->device_id;
- /* Win2K seems to assume that the pattern buffer is at 0xff
- initially ! */
- memset(s->vga.vram_ptr, 0xff, s->real_vram_size);
+ if (!runstate_check(RUN_STATE_INMIGRATE)) {
+ /* Win2K seems to assume that the pattern buffer is at 0xff
+ initially ! */
+ memset(s->vga.vram_ptr, 0xff, s->real_vram_size);
+ }
s->cirrus_hidden_dac_lockindex = 5;
s->cirrus_hidden_dac_data = 0;
--
1.7.2.5
[Qemu-devel] [PATCH v3 1/6] vl.c: do not save the RAM state when Xen is enabled, Stefano Stabellini, 2012/01/19
[Qemu-devel] [PATCH v3 2/6] xen mapcache: check if memory region has moved., Stefano Stabellini, 2012/01/19
[Qemu-devel] [PATCH v3 6/6] xen: change memory access behavior during migration., Stefano Stabellini, 2012/01/19
[Qemu-devel] [PATCH v3 3/6] Set runstate to INMIGRATE earlier, Stefano Stabellini, 2012/01/19
[Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume,
Stefano Stabellini <=