Re: [libvirt] [PATCH 1/2] util: Introduce virStrcmp into virstring.

2013-06-24 Thread Yang Dongsheng
On 06/24/2013 03:07 PM, Ján Tomko wrote: On 06/24/2013 08:42 AM, yangdongsheng wrote: Signed-off-by: yangdongshengyangds.f...@cn.fujitsu.com --- src/util/virstring.c | 14 ++ src/util/virstring.h |2 ++ 2 files changed, 16 insertions(+) diff --git a/src/util/virstring.c

Re: [libvirt] [PATCH 2/2] security: Save contexts of resources for restoring it.

2013-06-24 Thread Yang Dongsheng
On 06/24/2013 05:50 PM, Daniel P. Berrange wrote: On Mon, Jun 24, 2013 at 02:42:16PM +0800, yangdongsheng wrote: Before this patch, if relabel is yes or sec_type is dynamic in VM, after VM stopped, resources this VM accessed will be restored to default label on their path, but not the label

Re: [libvirt] [PATCH] util/vshstring: fix the vir_strdup when src is NULL.

2013-05-28 Thread Yang Dongsheng
This bug will cause the dest get a unexpected value. Example: [root@yds-pc libvirt]# virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # connect error: Failed to connect to the hypervisor error: internal error Unable to

Re: [libvirt] [PATCH 1/2] tool/virsh-domain.c: Add a vshNodeGetCPUMap function to get cpumap of host.

2013-05-26 Thread Yang Dongsheng
On 05/24/2013 08:18 PM, Peter Krempa wrote: On 05/24/13 11:21, yangdongsheng wrote: Get CPU map of host node CPUs by trying virNodeGetCPUMap and falling back to virNodeGetCPUStats. Signed-off-by: yangdongsheng yangds.f...@cn.fujitsu.com --- tools/virsh-domain.c | 55

Re: [libvirt] [PATCH 0/2] Fix the display of *virsh vcpuinfo* command.

2013-05-26 Thread Yang Dongsheng
On 05/24/2013 10:03 PM, Eric Blake wrote: On 05/24/2013 03:21 AM, yangdongsheng wrote: Hi, [uggh; yet another victim of git's stupidity in using In-reply-to:y if you answer the 'git send-email' question incorrectly - just hit enter rather than filling in a response to that question] Would you