On 2015-02-11 at 22:07, Wen Congyang wrote:
Signed-off-by: Wen Congyang <[email protected]> Signed-off-by: zhanghailiang <[email protected]> Signed-off-by: Gonglei <[email protected]> --- block/Makefile.objs | 2 +- block/blkcolo.c | 409 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 410 insertions(+), 1 deletion(-) create mode 100644 block/blkcolo.c
Seeing what you want to use the BlockBackend for (which is, set up an NBD server): I think it's best to create the BlockBackend the moment the NBD server is created, and destroy it the moment the NBD server is stopped (that is, create it in colo_svm_init() and destroy it in colo_svm_fini()).
Max
