[Qemu-devel] [PATCH V2 1/3] vmstate: introduce get_bufsize entry in VMStateField

2011-12-28 Thread Mitsyanko Igor
New get_bufsize field in VMStateField is supposed to help us easily add save/restore support of dynamically allocated buffers in device's states. There are some cases when information about size of dynamically allocated buffer is already presented in specific device's state structure, but in such

[Qemu-devel] [PATCH V2 1/3] vmstate: introduce get_bufsize entry in VMStateField

2011-12-26 Thread Mitsyanko Igor
New get_bufsize field in VMStateField is supposed to help us easily add save/restore support of dynamically allocated buffers in device's states. There are some cases when information about size of dynamically allocated buffer is already presented in specific device's state structure, but in such