Gao feng
d97485cfc0
free stack after cloned children finished
...
avoid children using the freed memory.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-02-26 14:53:40 +08:00
Lai Jiangshan
4fc4ac0c46
Merge pull request #44 from laijs/online-cpu-mem
...
add ONLINECPUMEM command
2016-02-22 10:04:34 +08:00
Lai Jiangshan
bd41fcfbe6
add ONLINECPUMEM command
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-02-19 13:31:07 +08:00
Gao feng
bd9623c892
Merge pull request #43 from gnawux/release-0.5
...
release hyper/runv 0.5
v0.5.0
2016-02-05 15:46:51 +08:00
Xu Wang
00e65b239c
release hyper/runv 0.5
...
Signed-off-by: Xu Wang <gnawux@gmail.com >
2016-02-05 15:42:36 +08:00
Lai Jiangshan
b654a0fbd3
Merge pull request #42 from gao-feng/free
...
fix possible access memory after free
2016-02-01 10:56:40 +08:00
Gao feng
2f757d249d
Merge pull request #41 from gnawux/resize_cbfs
...
new kernel is bigger, increase the cbfs rom size
2016-01-31 21:22:45 +08:00
Gao feng
db33f31dc1
fix possible access memory after free
...
For tasks created by clone_VM, they share the memory with parent,
so when parent frees the stack, children may still access to this
stack. so don't free stack when children is still using the stack.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-01-31 19:24:07 +08:00
Wang Xu
661dcdda07
new kernel is bigger, increase the cbfs rom size
...
Signed-off-by: Wang Xu <gnawux@gmail.com >
2016-01-30 23:42:06 +08:00
Gao feng
22a65f7666
Merge pull request #40 from laijs/hot-add-cpu-mem
...
enable hot adding cpu/mem
2016-01-28 15:51:17 +08:00
Lai Jiangshan
1ce35da941
enable hot adding cpu/mem
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-01-28 15:48:43 +08:00
Xu Wang
e6cffd9add
Merge pull request #39 from laijs/escape
...
handle all escaped character correctly
2016-01-16 08:04:50 +08:00
Lai Jiangshan
213a00ec5e
handle all escaped character correctly
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-01-15 22:36:12 +08:00
Lai Jiangshan
c03c057a42
Merge pull request #37 from gao-feng/escape
...
handle escaped characters
2016-01-15 21:59:44 +08:00
Gao feng
73849713e8
handle escaped characters
...
./hyper run --rm ubuntu echo xxxx\>\"\\aadasd\"\>\<\>\<\<\<\\\\\\\"\as
POD id is pod-nvpvjBScdB
xxxx>"\aadasd"><><<<\\\"as
echo xxxx\>\"\\aadasd\"\>\<\>\<\<\<\\\\\\\"\as
xxxx>"\aadasd"><><<<\\\"as
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-01-14 11:12:33 +08:00
Lai Jiangshan
0610a4e156
Merge pull request #31 from gao-feng/exit
...
send out exec exit code
2016-01-07 16:44:17 +08:00
Gao feng
29efaadf0a
send out exec exit code
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-01-06 00:12:30 +08:00
feisky
02ba85f8e0
Merge pull request #36 from gao-feng/scsi
...
find scsi disk device if scsi addr is given
v0.3
2015-12-25 10:36:11 +08:00
Gao feng
d563b3ecb0
Merge pull request #34 from wcwxyz/master
...
Use configure script to check setns function
2015-12-24 16:05:37 +08:00
Gao feng
ce0ab6b836
find scsi disk device if scsi addr is given
...
scsi disk name is not consistent with scsi addr. find the
device through scsi addr.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-12-24 15:59:05 +08:00
feisky
feedb0808b
Merge pull request #35 from gao-feng/close
...
do not close pipe in write side
2015-12-24 10:42:05 +08:00
Gao feng
c14737f39c
do not close pipe in write side
...
hyper_container_stage0 shares fd table with init, right now stage0
may close pipe before init read the pipe. this will cause container
fail to start.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-12-23 17:07:07 +08:00
WANG Chao
4b6375a4a4
Use configure script to check setns function
...
I happen to find out on centos6.7, glibc-headers does have SYS_setns
defined, but previous release doesn't.
It's better to use configure script to check setns function.
Signed-off-by: WANG Chao <wcwxyz@gmail.com >
2015-12-22 15:58:45 +08:00
Lai Jiangshan
bfa1af2101
Merge pull request #33 from gao-feng/tty
...
some update
2015-12-11 16:54:44 +08:00
Gao feng
a866e257fd
update to v0.3
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-12-10 21:00:10 +08:00
Gao feng
d34656475e
kill process in destroy pod
...
hyper send destroy pod to shutdown vm, we should
give process a chance to handle TERM signal.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-12-10 15:13:12 +08:00
Gao feng
2b1edeceb4
introduce hyper_send_msg_block
...
the control serial port is opened as unblock fd, set
is as block fd to make sure sending successfully.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-12-10 14:57:16 +08:00
Gao feng
f49d1247d2
Merge pull request #32 from wcwxyz/master
...
define setns syscall wrapper to fix build issue
2015-12-07 10:29:15 +08:00
WANG Chao
ee697391d6
define setns syscall wrapper to fix build issue
...
For example on centos6.x, glibc doesn't contain setns syscall wrapper,
but kernel has setns. We can write a wrapper to simulate the glibc
behavior to fix compile issue.
NOTE: In such case, we will need kernel-headers to get syscall number.
Signed-off-by: WANG Chao <wcwxyz@gmail.com >
2015-12-03 15:50:15 +08:00
Xu Wang
93c02c012f
Merge pull request #30 from gao-feng/finish
...
works fine, this could accelerate hyper build and other replace cases
2015-11-24 11:03:14 +08:00
Gao feng
545258bd26
send out ack if pod already finished
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-24 10:17:40 +08:00
Lai Jiangshan
9611ecf356
Merge pull request #28 from gao-feng/cleanup
...
Cleanup
2015-11-19 12:46:13 +08:00
Gao feng
0887e9a6de
support kill container
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-18 18:50:07 +08:00
Gao feng
a2086298f6
rename FINISH to PODFINISHED
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-16 15:13:57 +08:00
Gao feng
b7c88467e2
Add remains when start container successfully
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-16 12:10:01 +08:00
Gao feng
0c997dbe85
use list to store containers
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-13 16:32:12 +08:00
Gao feng
6d3265a7fb
free tty of winsize is parse failed
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-13 14:44:36 +08:00
Gao feng
a46092a90a
free allocated memory in parse_container
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-13 11:59:43 +08:00
Gao feng
25da342f75
introduce hyper_free_container
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-13 10:56:51 +08:00
Gao feng
c3160aea0a
refactor parsing json
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-12 22:42:15 +08:00
Gao feng
7bbc240cae
Merge pull request #27 from gao-feng/restartPolicy
...
remove the codes of restart pod
2015-11-12 16:16:30 +08:00
Gao feng
1958e11f45
remove the codes of restart pod
...
hyper had implemented this function, these codes are useless.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-12 16:04:17 +08:00
Gao feng
738a11dcdc
initialize container in parse_new_container
...
fix the possible free incorrect memory.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-12 16:02:28 +08:00
Lai Jiangshan
280bc617d0
Merge pull request #24 from gao-feng/error
...
add the check of memory allocation
2015-11-12 15:08:00 +08:00
Gao feng
252def6bab
Merge pull request #26 from laijs/dyncontainers
...
add dynamic containers and fix bugs.
2015-11-12 14:41:37 +08:00
Lai Jiangshan
4361f071e8
move newcontainers to dyn_containers list and fix realloc bug
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2015-11-12 14:14:25 +08:00
Lai Jiangshan
7ef8099916
split hyper_cleanup_container()
...
as hyper_cleanup_container() and hyper_cleanup_containers().
Also fix the bug that the iterator "i" is corruption.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2015-11-11 09:52:22 +08:00
Gao feng
1558b44495
add the check of memory allocation
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-09 16:44:42 +08:00
Gao feng
0c42ea97a4
Merge pull request #23 from gao-feng/compile
...
export hyper_parse_new_container
2015-11-06 21:17:24 +08:00
Gao feng
51f2a45217
export hyper_parse_new_container
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2015-11-06 16:38:54 +08:00