[Qemu-devel] [PATCH v3 09/16] migration: Add a VMSTATE_BOOL_TEST() macro

minyard@acm.org posted 16 patches 7 years, 2 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v3 09/16] migration: Add a VMSTATE_BOOL_TEST() macro
Posted by minyard@acm.org 7 years, 2 months ago
From: Corey Minyard <cminyard@mvista.com>

This will be needed by coming I2C changes.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
---
 include/migration/vmstate.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 2b501d0466..0861e18138 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -850,6 +850,9 @@ extern const VMStateInfo vmstate_info_qtailq;
 #define VMSTATE_INT32_POSITIVE_LE(_f, _s)                             \
     VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_le, int32_t)
 
+#define VMSTATE_BOOL_TEST(_f, _s, _t)                               \
+    VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_bool, bool)
+
 #define VMSTATE_INT8_TEST(_f, _s, _t)                               \
     VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_int8, int8_t)
 
-- 
2.17.1


Re: [Qemu-devel] [PATCH v3 09/16] migration: Add a VMSTATE_BOOL_TEST() macro
Posted by Dr. David Alan Gilbert 7 years, 2 months ago
* minyard@acm.org (minyard@acm.org) wrote:
> From: Corey Minyard <cminyard@mvista.com>
> 
> This will be needed by coming I2C changes.
> 
> Signed-off-by: Corey Minyard <cminyard@mvista.com>

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

> ---
>  include/migration/vmstate.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
> index 2b501d0466..0861e18138 100644
> --- a/include/migration/vmstate.h
> +++ b/include/migration/vmstate.h
> @@ -850,6 +850,9 @@ extern const VMStateInfo vmstate_info_qtailq;
>  #define VMSTATE_INT32_POSITIVE_LE(_f, _s)                             \
>      VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_le, int32_t)
>  
> +#define VMSTATE_BOOL_TEST(_f, _s, _t)                               \
> +    VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_bool, bool)
> +
>  #define VMSTATE_INT8_TEST(_f, _s, _t)                               \
>      VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_int8, int8_t)
>  
> -- 
> 2.17.1
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK