Re: [libvirt] [PATCH v2 0/2] add support for --config in setmaxmem command

2014-08-05 Thread chenhanx...@cn.fujitsu.com
ping -Original Message- From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of Chen Hanxiao Sent: Thursday, July 31, 2014 11:41 AM To: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 0/2] add support for --config in setmaxmem command

Re: [libvirt] [PATCH RFC] LXC: add HOME environment variable

2014-08-04 Thread chenhanx...@cn.fujitsu.com
environment variable, set 'HOME=/' as default. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_container.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 1cf2c8f..9df9c04 100644 --- a/src/lxc/lxc_container.c

Re: [libvirt] [PATCH 1/2] LXC: add support for --config in setmaxmem command

2014-07-28 Thread chenhanx...@cn.fujitsu.com
wrote: In lxc, we could not use setmaxmem command with --config options. This patch will add support for this. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_driver.c | 69 ++-- 1 file changed, 46 insertions

Re: [libvirt] [PATCH 2/2] LXC: use lxcDomainSetMemoryFlags to do lxcDomainSetMaxMemory's work

2014-07-28 Thread chenhanx...@cn.fujitsu.com
, Chen Hanxiao wrote: Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_driver.c | 36 +--- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index be6ee19..9f974eb 100644

Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-07-28 Thread chenhanx...@cn.fujitsu.com
commit 23adbe12 (fs,userns: Change inode_capable to capable_wrt_inode_uidgid) uncovered that issue. Signed-off-by: Richard Weinberger rich...@nod.at Reviewed-by: Chen Hanxiao chenhanx...@cn.fujitsu.com -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo

Re: [libvirt] [PATCH 0/2] add support for --config in setmaxmem command

2014-07-23 Thread chenhanx...@cn.fujitsu.com
ping -Original Message- From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of Chen Hanxiao Sent: Wednesday, July 16, 2014 5:51 PM To: libvir-list@redhat.com Subject: [libvirt] [PATCH 0/2] add support for --config in setmaxmem command Chen

Re: [libvirt] [PATCH] LXC: show used memory as 0 when domain is not active

2014-07-21 Thread chenhanx...@cn.fujitsu.com
: virsh # dominfo chx3 State: shut off Max memory: 92160 KiB Used memory:92160 KiB After: virsh # dominfo container1 State: shut off Max memory: 92160 KiB Used memory:0 KiB Similar to qemu cases. Signed-off-by: Chen Hanxiao chenhanx

Re: [libvirt] [PATCH] LXC: create a bind mount for sysfs when enable userns but disable netns

2014-07-18 Thread chenhanx...@cn.fujitsu.com
but disable netns kernel commit 7dc5dbc879bd0779924b5132a48b731a0bc04a1e forbid us doing a fresh mount for sysfs when enable userns but disable netns. This patch will create a bind mount in this senario. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_container.c | 44

Re: [libvirt] [PATCHv4 1/2] lxc: allow to keep or drop capabilities

2014-07-18 Thread chenhanx...@cn.fujitsu.com
than the default using this mechanism. --- Reviewed-by: Chen Hanxiao chenhanx...@cn.fujitsu.com -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCHv4 2/2] lxc domain from xml: convert lxc.cap.drop

2014-07-18 Thread chenhanx...@cn.fujitsu.com
lxc.cap.drop --- Reviewed-by: Chen Hanxiao chenhanx...@cn.fujitsu.com -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v2] LXC: add support for --config in setmem command

2014-07-10 Thread chenhanx...@cn.fujitsu.com
-Original Message- From: Ján Tomko [mailto:jto...@redhat.com] Sent: Thursday, July 10, 2014 9:40 PM -if (virDomainSetMemoryEnsureACL(dom-conn, vm-def) 0) +if (virDomainSetMemoryFlagsEnsureACL(dom-conn, vm-def, flags) 0) +goto cleanup; + +if (!(caps =

Re: [libvirt] [PATCH] LXC: fix an improper comments for lxcDomainDestroyFlags

2014-07-08 Thread chenhanx...@cn.fujitsu.com
Currently @flag is not used yet. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 79c3b4a..5c4ab58 100644 --- a/src/lxc/lxc_driver.c +++ b/src

Re: [libvirt] [PATCH] LXC: introduce lxcDomainSetMemoryFlags

2014-07-07 Thread chenhanx...@cn.fujitsu.com
not use setmem command with --config options. This patch will add support for this. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_driver.c | 52 ++-- 1 file changed, 42 insertions(+), 10 deletions(-) diff

Re: [libvirt] [PATCH] LXC: trivially support flag VIR_DRV_FEATURE_TYPED_PARAM_STRING

2014-06-24 Thread chenhanx...@cn.fujitsu.com
wrote: fix: virsh -c lxc:/// memtune DOMAIN error: Unable to get number of memory parameters error: unsupported flags (0x4) in function lxcDomainGetMemoryParameters Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_driver.c | 6 +- 1 file changed, 5

Re: [libvirt] [PATCH v2] LXC: trivially support flag VIR_DRV_FEATURE_TYPED_PARAM_STRING

2014-06-24 Thread chenhanx...@cn.fujitsu.com
wrote: fix: virsh -c lxc:/// memtune DOMAIN error: Unable to get number of memory parameters error: unsupported flags (0x4) in function lxcDomainGetMemoryParameters Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- v2: also fix a similar issue

Re: [libvirt] [PATCH] lxc: don't update memUsage when failing to get memory usage

2014-06-23 Thread chenhanx...@cn.fujitsu.com
Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/lxc/lxc_cgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c index 8dfdc60..af95941 100644 --- a/src/lxc/lxc_cgroup.c +++ b/src/lxc/lxc_cgroup.c @@ -194,7

Re: [libvirt] [PATCH] vircgroup: Don't leak keypath if failed to kill process

2014-05-16 Thread chenhanx...@cn.fujitsu.com
ping -Original Message- From: Chen, Hanxiao/陈 晗霄 Sent: Tuesday, May 13, 2014 4:01 PM To: libvir-list@redhat.com Cc: Chen, Hanxiao/陈 晗霄 Subject: [libvirt][PATCH] vircgroup: Don't leak keypath if failed to kill process Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com

Re: [libvirt] libvirt 1.2.4 and virt-manager 0.9.0 are not incompatible

2014-05-06 Thread chenhanx...@cn.fujitsu.com
Hi, You need to update libvirt-python: http://libvirt.org/sources/python/ From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of xeon_feng Sent: Tuesday, May 06, 2014 2:00 PM To: libvirt-us...@redhat.com; libvir-list@redhat.com Subject: [libvirt] libvirt

Re: [libvirt] [PATCH] docs: update docs for setting the QEMU BIOS file path

2014-04-29 Thread chenhanx...@cn.fujitsu.com
-Original Message- From: Jim Fehlig [mailto:jfeh...@suse.com] Sent: Tuesday, April 29, 2014 12:25 PM To: Chen, Hanxiao/陈 晗霄 Cc: Nehal J Wani; libvir-list Subject: Re: [libvirt] [PATCH] docs: update docs for setting the QEMU BIOS file path chenhanx...@cn.fujitsu.com wrote

Re: [libvirt] [PATCH v2] docs: update docs for setting the QEMU BIOS path

2014-04-29 Thread chenhanx...@cn.fujitsu.com
Hanxiao chenhanx...@cn.fujitsu.com --- v2: updated description by Jim's comments. docs/formatdomain.html.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index b9bbcc9..e4bd87e 100644 --- a/docs

Re: [libvirt] [PATCH] docs: update docs for setting the QEMU BIOS file path

2014-04-28 Thread chenhanx...@cn.fujitsu.com
-Original Message- From: Nehal J Wani [mailto:nehaljw.k...@gmail.com] Sent: Monday, April 28, 2014 1:07 PM To: Chen, Hanxiao/陈 晗霄 Cc: libvir-list Subject: Re: [libvirt] [PATCH] docs: update docs for setting the QEMU BIOS file path ddThe optional codeloader/code tag