- 01 Jun, 2016 32 commits
-
-
Pavel Emelyanov authored
Thread ones start after shared. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
An interference of sigreturn_restore rework patches and vm_open callback ones has lead to the situation when vme for restorer has already been copied to rst-mem, but sysv shmem vm_open tried to modify previously seen vmes. Fix this by copying vme-s to restorer late, but still before sigreturn_restore. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
The mremap() grow on anonymous shared memory doesn't produce usable segment, as the underlying kernel tmpfs file doesn't get truncated. So any access to new mem will result in sigbus. Disable this grow for now, we only need few of such memory. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
The RM_PRIVATE memory can move every time we call rst_mem_alloc, so it's impossible to have static pointer on it. Since task args is used actyvely, it will be easier to handle it manually. Reported-by:
Andrey Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
After all arrays remapping is reworked, the remap_array() can be dropped from code and in-place ptr fixup helper can appear. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
These two objects are actually needed at the very early stages of restore, much earlier than they are actually allocated. To make life nicer, let's allocate args from private rst mem, it will get remapped into restorer blob automatically. The new memory layout then is | restorer code | memzone (stacks and sigframes) | arguments | The last area is unmapped at the very end of restorer code. Also this gives the opportunity not to copy many bits betweek static variables and task-args, but put them directly into args. All the next patches are about it. Also the sigreturn_restore() is now stuffed with preparatory code and is quite big. When new "restoring" is added it's confusing at which place in the code it should be inserted. This patch makes a clear distinction -- the sigreturn_restore() is __only__ about remapping the memory into restorer blob and jumping into it. All the rest should go into restore_one_alive_task(). Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Right now memzone (stack and sigframe) sit on thread args, which are allocated independently from rst-mem. In the next patches task and thread args will be moved on rst-mem and will get unmapped by restorer at the end. Since both stack and sigframe are required even after rst-mem unmap, memzon should live independelntly. The new restorer blob layout will be described in the next patch. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
When getting hint for restorer blob we scan the list of vmas in criu address space. Since these vmas are only required to find holes, we can merge vmas alltogether and make restorer_get_vma_hint's work easier. Reduces list of items in small zdtm tests from 71 to 9. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
In this case we can run more tests Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Dengguangxing authored
Signed-off-by:
Deng Guangxing <dengguangxing@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Dengguangxing authored
join-ns zdtm test will skip ns and uns flavors, and some socket related test, too. Because join-ns test will try to join an existing network namespace. Signed-off-by:
Deng Guangxing <dengguangxing@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
CID 159849 (#4 of 4): Resource leak (RESOURCE_LEAK) 15. leaked_storage: Variable jn going out of scope leaks the storage it points to. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Cyrill Gorcunov authored
To match them in struct cr_options declaration. No func change. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Dengguangxing authored
Signed-off-by:
Deng Guangxing <dengguangxing@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Dengguangxing authored
Signed-off-by:
Deng Guangxing <dengguangxing@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Dengguangxing authored
this patch add join-ns option to criu CLI and RPC. This opt can be used in this fomat: --join-ns NS:PID|NS_FILE for example --join-ns net:12345 or --join-ns net:/foo/bar. pid namespaces is not supported yet. As fork() is needed to make new pid-namespace work. That makes it hard for criu to track the child-process through pid because another child process has been created after fork(). Signed-off-by:
Deng Guangxing <dengguangxing@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
- 31 May, 2016 8 commits
-
-
Pavel Emelyanov authored
The restore_bootstrap_len is restorer, args and rst-mem lenghts. Restorer is pie_size() from restorer, which is page-size aligned. Args len is aligned to page-size few lines above. The remapable rst-mem grows page by page and is aligned too. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrew Vagin authored
Currently all test mounts are mounted in the host mount namespace, so on restore we get root with some mounts. Cc: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Now we don't detect extra mounts, if they have peers with the same root and target paths. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Jenkins sends this files as a message body if something failed. Cc: Sergey Bronnikov <sergeyb@openvz.org> Fixes: 474f2dfc ("zdtm.py: add option --keep-going") Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Reported-by:
Stanislav Kinsburskiy <skinsbursky@virtuozzo.com> Cc: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com> Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Kirill Tkhai authored
We were luckely on built-in tests, because always AIO pages were present, and, thus, they are dumped. But AIO pages are not guaranteed to be present in common case. This patch makes AIO pages are dumped certanly. Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Kirill Tkhai authored
nr_req always depends on ring size and we even check for that. Kill parasite_aio::max_reqs,vma_nr_reqs and vma_area::aio_nr_req, because they are not need and excess. Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Kirill Tkhai authored
The first is a preparation to kill aio_nr_req. The second and the third are to have more debug info at restore. v2: Print mmap err code Signed-off-by:
Kirill Tkhai <ktkhai@vituozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-