[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH V5 22/29] vmstate: add VMSTATE_ARRAY_POINTER for
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] Re: [PATCH V5 22/29] vmstate: add VMSTATE_ARRAY_POINTER for pointer to array. |
Date: |
Sun, 11 Oct 2009 12:37:16 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Fri, Oct 09, 2009 at 03:28:55PM +0900, Isaku Yamahata wrote:
> add VMSTATE_ARRAY_POINTER for pointer to array.
> This will be used later.
>
> Signed-off-by: Isaku Yamahata <address@hidden>
> ---
> hw/hw.h | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/hw/hw.h b/hw/hw.h
> index 8c223f8..e867af4 100644
> --- a/hw/hw.h
> +++ b/hw/hw.h
> @@ -389,6 +389,16 @@ extern const VMStateInfo vmstate_info_buffer;
> + type_check_array(_type,typeof_field(_state, _field),_num) \
> }
>
> +#define VMSTATE_ARRAY_POINTER(_field, _state, _version, _info, _type, _size)
> { \
> + .name = (stringify(_field)), \
> + .version_id = (_version), \
> + .size = (_size), \
> + .info = &(_info), \
> + .flags = VMS_SINGLE | VMS_POINTER, \
> + .offset = offsetof(_state, _field) \
> + + type_check(_type,typeof_field(_state, _field)) \
> +}
> +
This is really just VMSTATE_POINTER, array pointer implies char** IMO.
Also please use a wrapper so that users don't
have to repeat typeof_field(_state, _field).
> #define VMSTATE_VARRAY(_field, _state, _field_num, _version, _info, _type) {\
> .name = (stringify(_field)), \
> .version_id = (_version), \
> --
> 1.6.0.2
- [Qemu-devel] Re: [PATCH V5 19/29] pci: split out ioport address parsing from pci configuration access logic., (continued)
[Qemu-devel] [PATCH V5 26/29] pci: use helper function in pci_default_write_config(), Isaku Yamahata, 2009/10/09
[Qemu-devel] [PATCH V5 13/29] pci: introduce pcibus_t to represent pci bus address/size instead of uint32_t, Isaku Yamahata, 2009/10/09
[Qemu-devel] [PATCH V5 16/29] pci: 64bit bar support., Isaku Yamahata, 2009/10/09
[Qemu-devel] [PATCH V5 22/29] vmstate: add VMSTATE_ARRAY_POINTER for pointer to array., Isaku Yamahata, 2009/10/09
- [Qemu-devel] Re: [PATCH V5 22/29] vmstate: add VMSTATE_ARRAY_POINTER for pointer to array.,
Michael S. Tsirkin <=
[Qemu-devel] [PATCH V5 23/29] pci: pcie host and mmcfg support., Isaku Yamahata, 2009/10/09