diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-14 15:24:50 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:48 -0500 |
commit | eacf610f37c3ca27870cf0b2d55870e20a042962 (patch) | |
tree | f4642ca328eb5224822f6a1893a793cc79a33b49 /hw | |
parent | 9958068d6078720d391230da4bbf731c9ae27135 (diff) |
vmstate: Add support for partial buffers transmission
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/hw.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -473,6 +473,16 @@ extern const VMStateInfo vmstate_info_buffer; .offset = offsetof(_state, _field) \ + type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \ } + +#define VMSTATE_PARTIAL_BUFFER(_field, _state, _size) { \ + .name = (stringify(_field)), \ + .size = (_size), \ + .info = &vmstate_info_buffer, \ + .flags = VMS_BUFFER, \ + .offset = offsetof(_state, _field) \ + + type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \ +} + #define VMSTATE_BUFFER_START_MIDDLE(_field, _state, start) { \ .name = (stringify(_field)), \ .size = sizeof(typeof_field(_state,_field)) - start, \ |