This patch works fine.
Tested by: Yongjie Ren <[email protected]>
Best Regards,
Yongjie Ren (Jay)
> -----Original Message-----
> From: Jan Kiszka [mailto:[email protected]]
> Sent: Friday, March 02, 2012 5:21 PM
> To: Avi Kivity; Marcelo Tosatti
> Cc: Zhang, Yang Z; Ren, Yongjie; KVM list
> Subject: [PATCH] qemu-kvm: Fix migration from older version due to i8254
> changes
>
> Old qemu-kvm already contained an equivalent field to i8254's
> irq_disabled. We therefore have to remove upstream's version restriction
> here to allow migration from older versions.
>
> Signed-off-by: Jan Kiszka <[email protected]>
> ---
> hw/i8254.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/i8254.c b/hw/i8254.c
> index e5cda2f..33d94e1 100644
> --- a/hw/i8254.c
> +++ b/hw/i8254.c
> @@ -469,7 +469,7 @@ VMStateDescription vmstate_pit = {
> .minimum_version_id_old = 1,
> .load_state_old = pit_load_old,
> .fields = (VMStateField []) {
> - VMSTATE_UINT32_V(channels[0].irq_disabled, PITState, 3),
> + VMSTATE_UINT32(channels[0].irq_disabled, PITState), /*
> qemu-kvm's v2 had 'flags' here */
> VMSTATE_STRUCT_ARRAY(channels, PITState, 3, 2,
> vmstate_pit_channel, PITChannelState),
> VMSTATE_TIMER(channels[0].irq_timer, PITState),
> VMSTATE_END_OF_LIST()
> --
> 1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html