[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 05/11] vga-isa: fix migration by breaking it
From: |
Juan Quintela |
Subject: |
[Qemu-devel] Re: [PATCH 05/11] vga-isa: fix migration by breaking it |
Date: |
Wed, 23 Mar 2011 10:54:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Anthony Liguori <address@hidden> wrote:
> This is pretty sad. We use the same section name for vga-isa as we do for
> vga-pci even though we use separate formats. This breaks the live migration
> protocol because we may misinterpret the vga-isa as a vga-pci device.
>
> vga-isa should use it's own wrapper just like vga-pci does. That's what we do
> in this patch.
>
> Signed-by-off: Anthony Liguori <address@hidden>
> ---
> hw/vga-isa.c | 13 +++++++++++--
> 1 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/hw/vga-isa.c b/hw/vga-isa.c
> index 5f1ef76..eaae2e0 100644
> --- a/hw/vga-isa.c
> +++ b/hw/vga-isa.c
> @@ -72,10 +72,19 @@ static int vga_initfn(ISADevice *dev)
> return 0;
> }
>
> +static const VMStateDescription vmstate_vga_isa = {
> + .name = "isa-vga",
> + .version_id = 1,
> + .fields = (VMStateField []) {
> + VMSTATE_STRUCT(state, ISAVGAState, 0, vmstate_vga_common,
> VGACommonState),
> + VMSTATE_END_OF_LIST(),
> + },
> +};
> +
> static ISADeviceInfo vga_info = {
> .qdev.name = "isa-vga",
> .qdev.size = sizeof(ISAVGAState),
> - .qdev.vmsd = &vmstate_vga_common,
> + .qdev.vmsd = &vmstate_vga_isa,
> .qdev.reset = vga_reset_isa,
> .qdev.no_user = 1,
> .init = vga_initfn,
> @@ -84,7 +93,7 @@ static ISADeviceInfo vga_info = {
> /* Register the VMState Description to support VMState introspection */
> static void init_vmstate_description_0(void)
> {
> - register_vmstate_description(&vmstate_vga_common);
> + register_vmstate_description(&vmstate_vga_isa);
> }
>
> vmstate_init(init_vmstate_description_0);
This was done that way when I ported this device.
This define is also always setup CONFIG_BOCHS_VBE, and at some point it
didn't worked without it.
But this is a different problem that doing the tests.
Later, JUan.
- [Qemu-devel] [PATCH 07/11] eeprom93xx: Use the new hack macro to avoid duplicate field names, (continued)
[Qemu-devel] [PATCH 02/11] vmstate: register all VMStateDescriptions, Anthony Liguori, 2011/03/22
[Qemu-devel] [PATCH 05/11] vga-isa: fix migration by breaking it, Anthony Liguori, 2011/03/22
- [Qemu-devel] Re: [PATCH 05/11] vga-isa: fix migration by breaking it,
Juan Quintela <=
[Qemu-devel] [PATCH 09/11] pckbd: make non-ISA pckbd use a unique name, Anthony Liguori, 2011/03/22
[Qemu-devel] [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Anthony Liguori, 2011/03/22
- Re: [Qemu-devel] [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Anthony Liguori, 2011/03/22
- Re: [Qemu-devel] [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Stefan Hajnoczi, 2011/03/23
- Re: [Qemu-devel] [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Peter Maydell, 2011/03/23
- Re: [Qemu-devel] [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Anthony Liguori, 2011/03/23
- [Qemu-devel] Re: [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Juan Quintela, 2011/03/23
- Re: [Qemu-devel] Re: [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Anthony Liguori, 2011/03/23
- Re: [Qemu-devel] Re: [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Peter Maydell, 2011/03/23
- Re: [Qemu-devel] Re: [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState, Jan Kiszka, 2011/03/23