Skip to content

Commit

Permalink
virtio-gpu: block live migration
Browse files Browse the repository at this point in the history
Feeling a bit nervous putting the full live migration support
patch (https://patchwork.ozlabs.org/patch/606902/) in that
late in the 2.6 devel cycle as it carries some non-trivial
changes.  So disable migration in case virtio-gpu is present
for now.

Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
kraxel committed Apr 11, 2016
1 parent ca58b45 commit fa49e46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hw/display/virtio-gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,11 @@ const GraphicHwOps virtio_gpu_ops = {
.gl_block = virtio_gpu_gl_block,
};

static const VMStateDescription vmstate_virtio_gpu_unmigratable = {
.name = "virtio-gpu",
.unmigratable = 1,
};

static void virtio_gpu_device_realize(DeviceState *qdev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(qdev);
Expand Down Expand Up @@ -968,6 +973,8 @@ static void virtio_gpu_device_realize(DeviceState *qdev, Error **errp)
dpy_gfx_replace_surface(g->scanout[i].con, NULL);
}
}

vmstate_register(qdev, -1, &vmstate_virtio_gpu_unmigratable, g);
}

static void virtio_gpu_instance_init(Object *obj)
Expand Down

0 comments on commit fa49e46

Please sign in to comment.