[Spice-commits] Branch 'spice.v18' - 3 commits - hw/qxl.c target-i386/machine.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Wed Sep 1 05:44:43 PDT 2010


 hw/qxl.c              |   18 +++++++++++-------
 target-i386/machine.c |    2 ++
 2 files changed, 13 insertions(+), 7 deletions(-)

New commits:
commit 3b5eecbb93a46ff411fe805cbd61d1b1653b9f59
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Sep 1 14:39:12 2010 +0200

    qxl: migration fix #1
    
    The pointer to the modes table must be updated in post-load when
    migrating between spice 0.4 and spice 0.6.
    
    Note: rhel-6.0.z needs that one too.

diff --git a/hw/qxl.c b/hw/qxl.c
index 0f7f778..6c76bdc 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1307,6 +1307,17 @@ static int qxl_post_load(void *opaque, int version)
     int in, out, i, newmode;
 
     dprint(d, 1, "%s: start\n", __FUNCTION__);
+
+    assert(d->last_release_offset < d->vga.vram_size);
+    if (d->last_release_offset == 0) {
+        d->last_release = NULL;
+    } else {
+        d->last_release = (QXLReleaseInfo *)(ram_start + d->last_release_offset);
+    }
+
+    d->modes = (QXLModes*)((uint8_t*)d->rom + d->rom->modes_offset);
+
+    dprint(d, 1, "%s: restore more\n", __FUNCTION__);
     newmode = d->mode;
     d->mode = QXL_MODE_UNDEFINED;
     switch (newmode) {
@@ -1349,13 +1360,6 @@ static int qxl_post_load(void *opaque, int version)
     }
     dprint(d, 1, "%s: done\n", __FUNCTION__);
 
-    assert(d->last_release_offset < d->vga.vram_size);
-    if (d->last_release_offset == 0) {
-        d->last_release = NULL;
-    } else {
-        d->last_release = (QXLReleaseInfo *)(ram_start + d->last_release_offset);
-    }
-
     /* spice 0.4 compatibility -- accept but ignore */
     qemu_free(d->worker_data);
     d->worker_data = NULL;
commit dcc7ddf78481729afad8289c80ade729021e2a22
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Sep 1 14:09:02 2010 +0200

    [rhel6 compat] fix xsave patch

diff --git a/target-i386/machine.c b/target-i386/machine.c
index d76a0e6..5c73a2a 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -474,8 +474,8 @@ static const VMStateDescription vmstate_cpu = {
         VMSTATE_UINT64_V(xcr0, CPUState, 12),
         VMSTATE_UINT64_V(xstate_bv, CPUState, 12),
         VMSTATE_YMMH_REGS_VARS(ymmh_regs, CPUState, CPU_NB_REGS, 12),
-        VMSTATE_END_OF_LIST()
 #endif
+        VMSTATE_END_OF_LIST()
         /* The above list is not sorted /wrt version numbers, watch out! */
     }
 };
commit d8e407771de03126fbbd29adda1a88447adacd68
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Sep 1 13:49:34 2010 +0200

    [rhel6 compat] drop xsave migration support.

diff --git a/target-i386/machine.c b/target-i386/machine.c
index 5f8376c..d76a0e6 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -469,11 +469,13 @@ static const VMStateDescription vmstate_cpu = {
         /* KVM pvclock msr */
         VMSTATE_UINT64_V(system_time_msr, CPUState, 11),
         VMSTATE_UINT64_V(wall_clock_msr, CPUState, 11),
+#if 0
         /* XSAVE related fields */
         VMSTATE_UINT64_V(xcr0, CPUState, 12),
         VMSTATE_UINT64_V(xstate_bv, CPUState, 12),
         VMSTATE_YMMH_REGS_VARS(ymmh_regs, CPUState, CPU_NB_REGS, 12),
         VMSTATE_END_OF_LIST()
+#endif
         /* The above list is not sorted /wrt version numbers, watch out! */
     }
 };


More information about the Spice-commits mailing list