[Devel] [PATCH 8/8] dists/Makefile.am: remove dup

2015-06-02 Thread Kir Kolyshkin
Spotted this: > make[1]: Entering directory `/media/ts/kir/git/newovz/libvzctl/dists' > Makefile:698: warning: overriding recipe for target `ubuntu' > Makefile:691: warning: ignoring old recipe for target `ubuntu' Apparently there is a copy-paste error in dists/Makefile.am -- "ubuntu" target is l

[Devel] [PATCH 7/8] configure.ac/Makefiles: remove unused stuff

2015-06-02 Thread Kir Kolyshkin
Some unused artefacts are left in configure.ac since it was taken from the legacy OpenVZ package. Let's clean this up. First, a check for libdl is not needed, as the dl library is not used by this package. Also, remove $(DL_LIBS) from {src,test}/Makefile.am. Second, remove a line from the configu

[Devel] [PATCH 6/8] lib/Makefile.am: use $(UTIL_LIBS)

2015-06-02 Thread Kir Kolyshkin
Don't hardcode library name as in configure.ac we check for it and define the proper variable. Signed-off-by: Kir Kolyshkin --- lib/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index 328f864..5d670d9 100644 --- a/lib/Makefile.a

[Devel] [PATCH 5/8] configure.ac: checks for ploop

2015-06-02 Thread Kir Kolyshkin
Add checks for ploop library and header. Define and use PLOOP_LIBS. Signed-off-by: Kir Kolyshkin --- configure.ac| 7 +++ lib/Makefile.am | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b02f611..b7dc54b 100644 --- a/configure.ac +++

[Devel] [PATCH 4/8] configure.ac: add checks for libvzevent

2015-06-02 Thread Kir Kolyshkin
This commit adds checks for vzevent header and library. In case they are not present, a helpful error message is displayed. If library is there, -lvzvent is added to LIBS by AC_CHECK_LIB, so we don't have to specify it explicitly. Signed-off-by: Kir Kolyshkin --- configure.ac| 6 +- lib

[Devel] [PATCH 3/8] configure.ac: check for libuuid, set LIBS

2015-06-02 Thread Kir Kolyshkin
This commit: * adds a check for libuuid presence, so configure fails with a helpful error message is libuiid devel package is not installed * uses UUID_LIBS instead of hardcoded value in Makefiles Signed-off-by: Kir Kolyshkin --- configure.ac| 2 ++ lib/Makefile.am | 2 +- src/Makefil

[Devel] [PATCH 2/8] libvzctl: untangle linking with libxml2

2015-06-02 Thread Kir Kolyshkin
This commit: * removes xml2-config calls as they are redundant (XXX_CFLAGS and XXX_LIBS are already set by PKG_CHECK_MODULES) * errors out from configure if libxml2-devel is not installed * avoids adding XML_LIBS and XML_CFLAGS to global LIBS and CFLAGS, as we don't need to compile ever

[Devel] [PATCH 1/8] Add missing linux headers

2015-06-02 Thread Kir Kolyshkin
Fix compilation by adding the missing vzlinux headers. The files are taken from vzkernel sources at https://src.openvz.org/projects/OVZ/repos/vzkernel Signed-off-by: Kir Kolyshkin --- lib/include/linux/vzctl_venet.h| 53 lib/include/linux/vzctl_veth.h | 41 +

[Devel] [PATCH 0/8] Compilation fixes and improvements

2015-06-02 Thread Kir Kolyshkin
I tried compiling libvzctl and it failed in a few places, not all of them obvious. I fixed it here and there and the result is this patch set aimed to help compiling libvzctl. It consists of fixes, configure checks that help to figure out if there are any build dependencies missing, and some small

[Devel] [RFC] Separate uevents delivery

2015-06-02 Thread Cyrill Gorcunov
Guys, could you please take a look once time permit, does the patch looks sane? The idea behind is to deliver uevents per VE, not per all net namespaces (moreover we allow nested net namespaces). It looks like I'm missing something here, would the construction below fit the requirement? (with the p

[Devel] [PATCH rh7] Port diff-mm-add-sysctl-vm.force_scan_thresh

2015-06-02 Thread Vladimir Davydov
Author: Vladimir Davydov Email: vdavy...@parallels.com Subject: mm: add sysctl vm.force_scan_thresh Date: Fri, 14 Nov 2014 19:50:10 +0300 If an lru list is so small that we can't scan anything from it on the current scan prio, we skip it. Therefore if all lru lists are small, we will be looping ov

[Devel] [PATCH rh7] Port diff-mm-vmscan-disable-fs-related-activity-for-direct-direct-reclaim

2015-06-02 Thread Vladimir Davydov
Author: Dmitry Monakhov Email: dmonak...@openvz.org Subject: mm: disable fs-related activity for direct direct reclaim Date: Thu, 30 May 2013 18:57:41 +0400 Suggested by alexey@. Avoid various interaction with fs on derect reclaim in order to avoid possible deadlocks. Let this works for kswapd ht

[Devel] [PATCH rh7] Port diff-ms-pagemap-do-not-leak-physical-addresses-to-non-privileged-userspace

2015-06-02 Thread Vladimir Davydov
Author: Konstantin Khorenko Email: khore...@parallels.com Subject: ms/pagemap: do not leak physical addresses to non-privileged userspace Date: Mon, 23 Mar 2015 19:21:49 +0400 ms commit: ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce Original thread in LKML: https://lkml.org/lkml/2015/3/9/864 https://

[Devel] [PATCH rh7] Port diff-mm-debug-memallocation-caused-fs-reentrance

2015-06-02 Thread Vladimir Davydov
Author: Dmitry Monakhov Email: dmonak...@openvz.org Subject: mm: debug memallocation caused fs reentrance Date: Sun, 9 Nov 2014 11:53:14 +0400 Signed-off-by: Dmitry Monakhov = Related to https://jira.sw.ru/browse/PSBM-33

[Devel] [PATCH rh7] headers: Support GCC 5

2015-06-02 Thread Cyrill Gorcunov
Without it impossible to build kernel with new compiler. It's a coumulative patch from mainline commits bebf56a1b176c2e1c9efe44e7e6915532cc682cf 5631b8fba640a4ab2f8a954f63a603fa34eda96b 71458cfc782eafe4b27656e078d379a34e472adf Signed-off-by: Cyrill Gorcunov CC: Vladimir Davydov CC: Konstanti

Re: [Devel] [PATCH rh7] ve: remove fairsched node only in the legacy mode

2015-06-02 Thread Cyrill Gorcunov
On Fri, May 29, 2015 at 01:58:15PM +0300, Vladimir Davydov wrote: > Currently, we try and fail to remove the fairsched node of a UUID-named > container from the kernel on stop: > > CT: 956ebfc3-3ca9-44e0-9739-ab8abbe50edc: started > Can't remove fairsched node 1073741823 err=-2 > CT: 956ebfc

Re: [Devel] [patch rh7 2/2] cgroup: Mangle cgroups root from inside of VE view

2015-06-02 Thread Cyrill Gorcunov
On Fri, May 29, 2015 at 11:37:35AM +0300, Vladimir Davydov wrote: > > > > No it can and it does run inside container (I notice some problems > > though, regardless of how we represent cgroup paths inside container). > > The main reason is to make /proc/pid/cgroup output to match what is > > contai

Re: [Devel] [patch rh7 2/2] cgroup: Mangle cgroups root from inside of VE view

2015-06-02 Thread Cyrill Gorcunov
On Fri, May 29, 2015 at 11:18:52AM +0300, Vladimir Davydov wrote: > Hi Cyrill, > > On Tue, May 26, 2015 at 06:00:52PM +0300, Cyrill Gorcunov wrote: > > We're bindmounting cgroups for container so if say a container > > is having CTID=200 then @cgroups and @mountinfo output will > > contain /200 as

Re: [Devel] [patch rh7 1/2] cgroup: mount -- Disable mounting from inside of VE context

2015-06-02 Thread Cyrill Gorcunov
On Fri, May 29, 2015 at 11:09:41AM +0300, Vladimir Davydov wrote: > On Tue, May 26, 2015 at 06:00:51PM +0300, Cyrill Gorcunov wrote: > > Even mounting knowing cgroups (ie ones which already known to VE and > > been mounted by vzctl or any other tool for containter sake) is not > > that harmless as

[Devel] [PATCH rh7] ploop: added into pvd header new close signatures

2015-06-02 Thread Andrey Smetanin
pvd header m_DiskInUse field extended to store additinal SIGNATURE_DISK_CLOSED_V21 value(will be used by backup software). Disk in use checks replaced by pvd_header_is_disk_in_use(). https://jira.sw.ru/browse/PSBM-33882 Signed-off-by: Andrey Smetanin --- drivers/block/ploop/fmt_ploop1.c | 14