Re: [Qemu-devel] [PATCH V5 3/5] libqblock API

2012-09-29 Thread Paolo Bonzini
Il 29/09/2012 10:13, Wenchao Xia ha scritto: > +static void qb_setup_info_addr(QBlockStaticInfo *info, > + QBlockStaticInfoAddr *info_addr) > +{ > +uint64_t *virt_size = NULL; > +QBlockLocationInfo *backing_loc = NULL; > +bool *encrypt = NULL; > +QBlock

[Qemu-devel] [PATCH V5 3/5] libqblock API

2012-09-29 Thread Wenchao Xia
This patch contains the major APIs in the library. For ABI some reserved members were used. Important APIs: 1 QBlockContext. This structure was used to retrieve errors, every thread must create one first. 2 QBlockState. It stands for an block image object. 3 QBlockStaticInfo. It contains st