At 10/10/2011 05:34 PM, Jan Kiszka Write: > On 2011-10-10 11:02, Daniel P. Berrange wrote:
> Run gdb with "set debug remote 1" and watch the communication, it is not > that complex. But a dump command is probably simpler for those > scenarios, I agree. We have determined to introduce a new command dump for such scenarios. Now, let's to discuss the arguments for this command: Here is the arguments for command migrate: { .name = "migrate", .args_type = "detach:-d,blk:-b,inc:-i,uri:s", .params = "[-d] [-b] [-i] uri", ... }, I think the arguments -b and -i are not required for dump, and -d is useful for dump. We can pass the file's path or fd to qemu instead of uri. So here is my image for command dump(reuse migration's code, not generate a standard format core): { .name = "dump", .args_type = "detach:-d,file:s", .params = "[-d] file", ... }, The argument can be 'file:file's path' or 'fd:fd's name' Any advice is welcome. Thanks Wen Congyang > > Jan >