[libvirt] [PATCH] cpu: Add support for al57 Intel features

2017-12-18 Thread Shaohe Feng
We can start qemu with a "cpu,+la57" to set 57-bit vitrual address space. So VM can be aware that it need to enable 5-level paging. Corresponding QEMU commits: al57 6c7c3c21f95dd9af8a0691c0dd29b07247984122 --- src/cpu/cpu_map.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[libvirt] [PATCH] Support CPU less NUMA node.

2017-04-20 Thread Shaohe Feng
Some platform NUMA node does not include cpu, such as Phi. This patch support CPU less NUMA node. But there must be one CPU cell node for a guest. Also must assign the host nodeset for this guest cell node. please enable numactl with "--with-numactl" for libvirt config. Test this patch: 1.

[libvirt] [PATCH V2 1/9] qemu_migration: Add support for mutil-thread compressed migration enable

2015-07-10 Thread ShaoHe Feng
We need to set the mutil-thread compress capability as true to enable it. Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- .gnulib | 2 +- src/qemu/qemu_migration.c | 56 +++ src/qemu

[libvirt] [PATCH V2 9/9] virsh: Add set and get multi-thread migration parameters commands

2015-07-10 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add command to allow set and get multi-thread migration parameters for a domain. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- tools/virsh-domain.c | 171

[libvirt] [PATCH V2 3/9] Add test cases for qemuMonitorJSONGetMigrationParameter

2015-07-10 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com This patch add test case for qemuMonitorJSONGetMigrationParameter. It will verify if qemu monitor json value can be parsed correctly. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- tests

[libvirt] [PATCH V2 0/9] support multi-thread compress migration.

2015-07-10 Thread ShaoHe Feng
and get multi-thread migration parameters commands ShaoHe Feng (5): qemu_migration: Add support for mutil-thread compressed migration enable qemu: Add monitor API for get/set migration parameters set multi-thread compress params for Migrate3 during live migration virsh: add multi-thread

[libvirt] [PATCH V2 6/9] Implement the public APIs for multi-thread compress parameters.

2015-07-10 Thread ShaoHe Feng
domainMigrateSetParameters, domainMigrateGetParameters src/libvirt-domain.c: * Implement virdomainMigrateSetParameters * Implement virdomainMigrateGetParameters src/libvirt_public.syms: * Export the new symbols Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f

[libvirt] [PATCH V2 7/9] remote: Add support for set and get multil thread migration parameters

2015-07-10 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add remote support for the set/get migration parameters API's Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- daemon/remote.c | 62 src/remote

[libvirt] [PATCH V2 5/9] virsh: add multi-thread migration option for live migrate command

2015-07-10 Thread ShaoHe Feng
Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- include/libvirt/libvirt-domain.h | 1 + tools/virsh-domain.c | 52 tools/virsh.pod | 23 -- 3 files changed, 69

[libvirt] [PATCH V2 8/9] qemu_driver: Add support to set/get migration parameters.

2015-07-10 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add qemuDomainMigrateGetParameters and qemuDomainMigrateSetParameters in order to set or get multi-thread compress parameters. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- src/qemu/qemu_driver.c | 158

[libvirt] [PATCH V2 4/9] set multi-thread compress params for Migrate3 during live migration

2015-07-10 Thread ShaoHe Feng
just support setting these params for Migrate3Full protocal. Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- include/libvirt/libvirt-domain.h | 24 src/qemu/qemu_domain.h | 3 +++ src/qemu/qemu_driver.c

[libvirt] [PATCH V2 2/9] qemu: Add monitor API for get/set migration parameters

2015-07-10 Thread ShaoHe Feng
parameters Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- src/qemu/qemu_monitor.c | 38 ++ src/qemu/qemu_monitor.h | 10 + src/qemu/qemu_monitor_json.c | 93 +++ src/qemu

[libvirt] [PATCH 6/9] Implement the public APIs for multi-thread compress parameters.

2015-06-29 Thread ShaoHe Feng
domainMigrateSetParameters, domainMigrateGetParameters src/libvirt-domain.c: * Implement virdomainMigrateSetParameters * Implement virdomainMigrateGetParameters src/libvirt_public.syms: * Export the new symbols Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f

[libvirt] [PATCH 2/9] qemu: Add monitor API for get/set migration parameters

2015-06-29 Thread ShaoHe Feng
parameters Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- src/qemu/qemu_monitor.c | 38 ++ src/qemu/qemu_monitor.h | 10 + src/qemu/qemu_monitor_json.c | 93 +++ src/qemu

[libvirt] [PATCH 7/9] remote: Add support for set and get multil thread migration parameters

2015-06-29 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add remote support for the set/get migration parameters API's Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- daemon/remote.c | 62 src/remote

[libvirt] [PATCH 9/9] virsh: Add set and get multi-thread migration parameters commands

2015-06-29 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add command to allow set and get multi-thread migration parameters for a domain. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- tools/virsh-domain.c | 171

[libvirt] [PATCH 8/9] qemu_driver: Add support to set/get migration parameters.

2015-06-29 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com Add qemuDomainMigrateGetParameters and qemuDomainMigrateSetParameters in order to set or get multi-thread compress parameters. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- src/qemu/qemu_driver.c | 158

[libvirt] [PATCH 4/9] set multi-thread compress params for Migrate3 during live migration

2015-06-29 Thread ShaoHe Feng
just support setting these params for Migrate3Full protocal. Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- include/libvirt/libvirt-domain.h | 24 src/qemu/qemu_domain.h | 3 +++ src/qemu/qemu_driver.c

[libvirt] [PATCH 5/9] virsh: add multi-thread migration option for live migrate command

2015-06-29 Thread ShaoHe Feng
Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- include/libvirt/libvirt-domain.h | 1 + tools/virsh-domain.c | 54 tools/virsh.pod | 22 +++- 3 files changed, 71

[libvirt] [PATCH 3/9] Add test cases for qemuMonitorJSONGetMigrationParameter

2015-06-29 Thread ShaoHe Feng
From: Eli Qiao liyong.q...@intel.com This patch add test case for qemuMonitorJSONGetMigrationParameter. It will verify if qemu monitor json value can be parsed correctly. Signed-off-by: ShaoHe Feng shaohe.f...@intel.com Signed-off-by: Eli Qiao liyong.q...@intel.com --- tests

[libvirt] [PATCH 1/9] qemu_migration: Add support for mutil-thread compressed migration enable

2015-06-29 Thread ShaoHe Feng
We need to set the mutil-thread compress capability as true to enable it. Signed-off-by: Eli Qiao liyong.q...@intel.com Signed-off-by: ShaoHe Feng shaohe.f...@intel.com --- src/qemu/qemu_migration.c | 56 +++ src/qemu/qemu_migration.h | 9

[libvirt] [PATCH 0/9] support multi-thread compress migration.

2015-06-29 Thread ShaoHe Feng
and get multi-thread migration parameters commands ShaoHe Feng (5): qemu_migration: Add support for mutil-thread compressed migration enable qemu: Add monitor API for get/set migration parameters set multi-thread compress params for Migrate3 during live migration virsh: add multi-thread

Re: [libvirt] [PATCH 1/4] add a qemu-specific event register API, to passthough the new events come from qemu

2012-02-05 Thread ShaoHe Feng
Thank you, Eric. I want to improve this feature as follow , in order to simplify the code. 1. set up a hashtable of event names to a appropriate struct. when user register an event, this event name will be added to this hashtable. and maybe different connection will add the same

Re: [libvirt] [PATCH 1/4] add a qemu-specific event register API, to passthough the new events come from qemu

2011-12-16 Thread ShaoHe Feng
, in order to isolate them from the rest events of libvirt? I think the qemuMonitorJSONIOProcessEvent has better to filter the register event names, but I did not know the best way to add these register event names list. , shao...@linux.vnet.ibm.com wrote: From: ShaoHe Feng shao

Re: [libvirt] [PATCH] add a default event handle, to passthough the new events come from qemu

2011-12-02 Thread ShaoHe Feng
Hi Eric, There's a question about register an Event. When user starts an application call remoteDispatchDomainEventsRegisterAny to register an event. And for some reasons, this application breaks down. Will the libvirtd daemon know the application breaks down? And delete the event? if not,

[libvirt] gdb works abnormally when debug the libvirt.

2011-11-29 Thread ShaoHe Feng
When I to use gdb to check whether qemuMonitorJSONIOProcessEvent processes the Event that I expect. but the gdb works abnormally. I list the the position of the source file by gdb. It is the correct functionqemuMonitorJSONIOProcessEvent. However I set break point on this position. then info b,

[libvirt] make install libvirt failled.

2011-11-13 Thread ShaoHe Feng
I make install libvirt failed on my Ubuntu 11.11. I think some html dependent packages are missed on my build environment. Does anyone know the reason? Thanks. the info of make install is as follow: /bin/bash /home/fsh/work/VM/libvirt/build-aux/install-sh -d /usr/share/doc/libvirt-0.9.6/html

Re: [libvirt] [PATCH] compile: fix undefined reference to gnutls_x509_crt_get_dn with gcc-4.6.1

2011-10-19 Thread ShaoHe Feng
Today, the same error encounters on my Ubuntu 11.10. After apply this patch, I can make Libvirt successfully. , Xu He Jie wrote: 于 2011年10月18日 22:45, Eric Blake 写道: On 10/18/2011 02:06 AM, Xu He Jie wrote: From: soulxusoulxu@soulxu-ThinkPad-T410.(none) When I compile libvirt with gcc-4.6.1