Lai Jiangshan
|
0c05c999e3
|
remove tty from struct hyper_win_size
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-08-02 11:15:45 +08:00 |
|
Lai Jiangshan
|
97099eb46e
|
declare functions to static
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-08-02 11:15:45 +08:00 |
|
Lai Jiangshan
|
b28a02fa0d
|
Merge pull request #140 from gao-feng/event2
[RFC] handle ttyfd out event priorly when write buffer is full
|
2016-08-01 09:39:50 +08:00 |
|
Gao feng
|
9a6738d84d
|
handle ttyfd out event priorly when write buffer is full
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-29 15:57:45 +08:00 |
|
Lai Jiangshan
|
d3cfa23dde
|
Merge pull request #139 from gao-feng/revert
Revert "move mount /proc to hyper_container_final_init()"
|
2016-07-21 10:07:15 +08:00 |
|
Gao feng
|
9bfb3be414
|
Revert "move mount /proc to hyper_container_final_init()"
running in child process, fail to setup finalinit
This reverts commit b0a601793e.
|
2016-07-21 10:02:58 +08:00 |
|
Gao feng
|
ae2d491c20
|
Merge pull request #138 from laijs/mount-proc
Mount proc when first exec
|
2016-07-20 17:15:57 +08:00 |
|
Lai Jiangshan
|
b0a601793e
|
move mount /proc to hyper_container_final_init()
exec can be run earlier than start container.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-20 16:58:44 +08:00 |
|
Lai Jiangshan
|
19f1dc012e
|
refactor struct hyper_container
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-20 15:28:55 +08:00 |
|
Lai Jiangshan
|
87b1a5c29a
|
add missing pod->remains++
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-20 12:24:48 +08:00 |
|
Lai Jiangshan
|
4a63bceb67
|
Merge pull request #137 from bergwolf/volume_mode
create volume _data dir with 0777 mode
|
2016-07-19 09:13:15 +08:00 |
|
Peng Tao
|
b2f6b89ea6
|
move hyper_create_file to util.h
Signed-off-by: Peng Tao <bergwolf@gmail.com>
|
2016-07-18 20:55:52 +08:00 |
|
Peng Tao
|
db4f364510
|
create volume _data dir with 0777 mode
So that any user is able to write to the new volume.
Signed-off-by: Peng Tao <bergwolf@gmail.com>
|
2016-07-18 20:55:32 +08:00 |
|
Gao feng
|
2ccea842bd
|
Merge pull request #136 from bergwolf/hyper_cp
hyper_copy_dir should use hyper_cmd
|
2016-07-18 13:24:44 +08:00 |
|
Peng Tao
|
3197bcad45
|
hyper_copy_dir should use hyper_cmd
Signed-off-by: Peng Tao <bergwolf@gmail.com>
|
2016-07-16 16:01:24 +08:00 |
|
Lai Jiangshan
|
3bed96c176
|
Merge pull request #133 from gao-feng/env
env: setup envs of container for exec
|
2016-07-15 16:40:43 +08:00 |
|
Gao feng
|
eecb4c5612
|
env: setup envs of container for exec
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-15 15:07:27 +08:00 |
|
Gao feng
|
c015887bb6
|
Merge pull request #132 from gao-feng/bug
cleanup & fix zombie process bug
|
2016-07-14 22:55:38 +08:00 |
|
Gao feng
|
2169309145
|
exec: restore sigmask of child process
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-14 19:37:21 +08:00 |
|
Gao feng
|
c5d25b6f5f
|
event: rename de to he
dvm_event has been removed long long ago.
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-14 19:26:37 +08:00 |
|
Gao feng
|
da6b36411a
|
remove useless var global_exec
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-14 19:22:09 +08:00 |
|
Lai Jiangshan
|
06d10f2844
|
Merge pull request #130 from gao-feng/proc
mount proc filesystem of container in enter_container
|
2016-07-07 21:08:46 +08:00 |
|
Gao feng
|
70d35640b9
|
mount proc filesystem of container in enter_container
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-07-07 18:50:47 +08:00 |
|
Gao feng
|
1f501c5417
|
Merge pull request #129 from bergwolf/shutdown_on_error
send ERROR to runv when shutting down upon errors
|
2016-07-07 09:14:46 +08:00 |
|
Gao feng
|
1c21bb2e6f
|
Merge pull request #128 from laijs/open-ns
wait until mount namespace fd is opened
|
2016-07-07 09:14:07 +08:00 |
|
Lai Jiangshan
|
b6c6e1f991
|
wait until mount namespace fd is opened
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 19:28:55 +08:00 |
|
Peng Tao
|
98059369b8
|
send ERROR to runv when shutting down upon errors
Otherwise ACK might let runv think its command succeeds.
Signed-off-by: Peng Tao <bergwolf@gmail.com>
|
2016-07-06 19:19:06 +08:00 |
|
Gao feng
|
03187117e1
|
Merge pull request #127 from laijs/container-and-exec-operations
split container operation to hyper_setup_container() and hyper_run_process()
|
2016-07-06 19:04:23 +08:00 |
|
Lai Jiangshan
|
54aed5efc5
|
split container operation to hyper_setup_container() and hyper_run_process()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 17:15:42 +08:00 |
|
Lai Jiangshan
|
98b8211ddc
|
move hyper_start_containers() to hyper_start_pod()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 15:55:07 +08:00 |
|
Lai Jiangshan
|
cd9a8f4306
|
set early env for exec
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 14:05:46 +08:00 |
|
Lai Jiangshan
|
bb550c2444
|
do not apply the container's env on exec
let the hyperd do it. (merge the envs)
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 14:05:33 +08:00 |
|
Lai Jiangshan
|
00308d00b5
|
split hyper_exec_cmd()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-06 11:39:27 +08:00 |
|
Gao feng
|
e255de660d
|
Merge pull request #126 from laijs/exec-fork
Exec: use fork() instead of the fragile clone(CLONE_VM|CLONE_FILES)
|
2016-07-05 12:58:25 +08:00 |
|
Lai Jiangshan
|
ca004ec273
|
use fork() instead of fragile clone(CLONE_VM|CLONE_FILES)
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-05 10:49:08 +08:00 |
|
Lai Jiangshan
|
52aca5a860
|
Merge pull request #125 from laijs/rootfs
use /tmp/hyperstart-rootfs as temporary rootfs
|
2016-07-05 09:50:12 +08:00 |
|
Lai Jiangshan
|
5fcac6f0bb
|
move the call of hyper_watch_exec_pty() to parent(init) process
so we don't need to touch the parent's memory nor file table.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-04 22:46:50 +08:00 |
|
Lai Jiangshan
|
216bce6fe0
|
don't wait hyper_do_exec_cmd() via waitpid()
wait it via hyper_get_type()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-04 22:36:52 +08:00 |
|
Lai Jiangshan
|
e8381942d4
|
send pid back to parent rather than touch the parent's memory directly
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-04 22:12:21 +08:00 |
|
Lai Jiangshan
|
51dc391bc0
|
all exec should have container id
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-04 21:58:05 +08:00 |
|
Lai Jiangshan
|
73a9c3e8e9
|
use /tmp/hyperstart-rootfs as temporary rootfs
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-07-04 20:56:00 +08:00 |
|
Gao feng
|
505ad4ddb0
|
Merge pull request #121 from YaoZengzeng/delete-container
Support for removing container
|
2016-07-01 11:23:44 +08:00 |
|
YaoZengzeng
|
20158b9033
|
Support for removing container
Signed-off-by: Yao Zengzeng <yaozengzeng@foxmail.com>
|
2016-06-30 19:59:18 -07:00 |
|
Gao feng
|
1e6dffd36f
|
Merge pull request #123 from laijs/introduce-parson
Introduce parson
|
2016-06-30 15:30:48 +08:00 |
|
Lai Jiangshan
|
d919414192
|
use parson to parse kill command
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-06-30 12:09:15 +08:00 |
|
Lai Jiangshan
|
b15d771a56
|
add const to container id in hyper_find_container()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-06-30 12:05:01 +08:00 |
|
Lai Jiangshan
|
b99768db28
|
add parson(github.com/kgabis/parson)
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
|
2016-06-30 11:17:44 +08:00 |
|
Lai Jiangshan
|
1a612982e8
|
Merge pull request #122 from gao-feng/cleanup
remove useless field in hyper_pod
|
2016-06-29 17:13:48 +08:00 |
|
Gao feng
|
3f034fec04
|
remove useless field in hyper_pod
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
|
2016-06-29 14:25:41 +08:00 |
|
Lai Jiangshan
|
831113b7d0
|
Merge pull request #118 from bergwolf/kvm-nested
enable kvm and devmem in guest kernel
|
2016-06-27 12:18:56 +08:00 |
|