[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/4] vmstate: accept QEMUTimer in VMSTATE_TIMER*
From: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH 4/4] vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR* |
Date: |
Thu, 15 Jan 2015 14:34:14 +0530 |
On (Thu) 08 Jan 2015 [11:03:28], Paolo Bonzini wrote:
> Old users of VMSTATE_TIMER* are mechanically changed to VMSTATE_TIMER_PTR
> variants.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
> index e45fc49..55ba584 100644
> --- a/include/migration/vmstate.h
> +++ b/include/migration/vmstate.h
> @@ -642,17 +642,29 @@ extern const VMStateInfo vmstate_info_bitmap;
> #define VMSTATE_FLOAT64(_f, _s) \
> VMSTATE_FLOAT64_V(_f, _s, 0)
>
> -#define VMSTATE_TIMER_TEST(_f, _s, _test) \
> +#define VMSTATE_TIMER_PTR_TEST(_f, _s, _test) \
> VMSTATE_POINTER_TEST(_f, _s, _test, vmstate_info_timer, QEMUTimer *)
>
> -#define VMSTATE_TIMER_V(_f, _s, _v) \
> +#define VMSTATE_TIMER_PTR_V(_f, _s, _v) \
> VMSTATE_POINTER(_f, _s, _v, vmstate_info_timer, QEMUTimer *)
>
> +#define VMSTATE_TIMER_PTR(_f, _s) \
> + VMSTATE_TIMER_PTR_V(_f, _s, 0)
> +
> +#define VMSTATE_TIMER_PTR_ARRAY(_f, _s, _n) \
> + VMSTATE_ARRAY_OF_POINTER(_f, _s, _n, 0, vmstate_info_timer, QEMUTimer *)
> +
> +#define VMSTATE_TIMER_TEST(_f, _s, _test) \
> + VMSTATE_SINGLE_TEST(_f, _s, _test, 0, vmstate_info_timer, QEMUTimer)
> +
> +#define VMSTATE_TIMER_V(_f, _s, _v) \
> + VMSTATE_SINGLE(_f, _s, _v, vmstate_info_timer, QEMUTimer)
> +
> #define VMSTATE_TIMER(_f, _s) \
> VMSTATE_TIMER_V(_f, _s, 0)
Why leave this around?
Amit
- [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API, Paolo Bonzini, 2015/01/08
- [Qemu-devel] [PATCH 4/4] vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR*, Paolo Bonzini, 2015/01/08
- Re: [Qemu-devel] [PATCH 4/4] vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR*,
Amit Shah <=
- [Qemu-devel] [PATCH 1/4] qemu-timer: rename timer_init to timer_init_tl, Paolo Bonzini, 2015/01/08
- [Qemu-devel] [PATCH 2/4] qemu-timer: add timer_init and timer_init_ns/us/ms, Paolo Bonzini, 2015/01/08
- [Qemu-devel] [PATCH 3/4] qemu-timer: introduce timer_deinit, Paolo Bonzini, 2015/01/08
- Re: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API, Fam Zheng, 2015/01/08