[libvirt] [PATCH v4 2/3] add qemu support to virDomainCoreDumpWithFormat API

2014-03-02 Thread qiaonuohan
This patch makes qemu driver supprot virDomainCoreDumpWithFormat API. --- src/qemu/qemu_driver.c | 45 +++- src/qemu/qemu_monitor.c | 7 --- src/qemu/qemu_monitor.h | 3 ++- src/qemu/qemu_monitor_json.c | 4 +++-

[libvirt] [PATCH v4 1/3] add new virDomainCoreDumpWithFormat API

2014-03-02 Thread qiaonuohan
--memory-only option is introduced without compression supported. Therefore, this is a freature regression of virsh dump. Now qemu has support dumping memory in kdump-compressed format. This patch is adding new virDomainCoreDumpWithFormat API, so that the format in which qemu dump domain's memory

[libvirt] [PATCH v4 3/3] allow virsh dump --memory-only specify dump format

2014-03-02 Thread qiaonuohan
This patch is used to add --compress and [--compression-format] string to virsh dump --memory-only. And virsh dump --memory-only is going be implemented by new virDomainCoreDumpWithFormat API. Signed-off-by: Qiao Nuohan qiaonuo...@cn.fujitsu.com --- tools/virsh-domain.c | 45

[libvirt] [PATCH v4 0/3] support dumping guest memory in compressed format

2014-03-02 Thread qiaonuohan
to v3: 1. address Jiri Denemark's comment about adding a new public API instead of changing an old one. Changes from v1 to v2: 1. address Daniel P. Berrange's comment about using a new parameter to replace flags like VIR_DUMP_COMPRESS_ZLIB. qiaonuohan (3): add new

[libvirt] [PATCH v3 0/4] support dumping guest memory in compressed format

2014-02-27 Thread qiaonuohan
. Changes from v1 to v2: 1. address Daniel P. Berrange's comment about using a new parameter to replace flags like VIR_DUMP_COMPRESS_ZLIB. qiaonuohan (4): add new virDomainMemoryDump API wire up qemu agent to virDomainMemoryDump API allow virsh dump --memory-only specify dump format add

[libvirt] [PATCH v3 4/4] add dump_memory_format in qemu.conf

2014-02-27 Thread qiaonuohan
This patch is used to add dump_memory_format to qemu.conf and libvirt will use it to specify the default format in which qemu dumps guest's memory. But when --compress is specified with virsh dump --memory-only, the format configured by dump_memory_format will be overrided. dump_memory_format can

[libvirt] [PATCH v3 2/4] wire up qemu agent to virDomainMemoryDump API

2014-02-27 Thread qiaonuohan
This patch makes use of the QEMU guest agent to implement the virDomainMemoryDump API. Signed-off-by: Qiao Nuohan qiaonuo...@cn.fujitsu.com --- src/qemu/qemu_driver.c | 42 -- src/qemu/qemu_monitor.c | 7 --- src/qemu/qemu_monitor.h |

[libvirt] [PATCH v3 1/4] add new virDomainMemoryDump API

2014-02-26 Thread qiaonuohan
--memory-only option is introduced without compression supported. Therefore, this is a freature regression of virsh dump. Now qemu has support dumping memory in kdump-compressed format. This patch is adding new virDomainMemoryDump API, so that the format in which qemu dump domain's memory can be

[libvirt] [PATCH v3 3/4] allow virsh dump --memory-only specify dump format

2014-02-26 Thread qiaonuohan
This patch is used to add --compress and [--compression-format] string to virsh dump --memory-only. And virsh dump --memory-only is going be implemented by new virDomainMemoryDump API. Signed-off-by: Qiao Nuohan qiaonuo...@cn.fujitsu.com --- tools/virsh-domain.c | 55