Bin Liu
1352e31180
Merge pull request #5200 from openanolis/agent_rwlock
...
refactor(runtime-rs): Use RwLock in runtime-agent
2022-09-29 13:15:41 +08:00
Bin Liu
457b0beaf0
runtime-rs: update Cargo.lock
...
src/dragonball/Cargo.toml is updated and the Cargo.lock is not
commited into repo.
Fixes : #5280
Signed-off-by: Bin Liu <bin@hyper.sh>
2022-09-29 13:15:01 +08:00
Bin Liu
abbdf89a06
Merge pull request #5271 from liubin/fix/4729-add-close-io-for-kubectl-cp
...
runtime-rs: fix shim close_io call to support kubectl cp
2022-09-29 13:10:49 +08:00
Peng Tao
046ddc6463
readme: remove libraries mentioning
...
There are two duplicated mentioning of the rust libraries in README.md.
Let's just remove them all as the section is intended to list out core
Kata components rather than general libraries.
Fixes : #5275
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2022-09-29 12:10:50 +08:00
Chao Wu
f89ada2de1
dragonball: update ut for kernel config
...
Since linux loader is updated in the Dragonball and the api for Cmdline
has been changed ( as_str() changed to as_cstring() ), we need to update
unit test in Dragonball.
fixes : #5277
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
2022-09-29 11:35:45 +08:00
Bin Liu
0e899669ee
runtime-rs: fix shim close_io call to support kubectl cp
...
Add close_io to shim and call agent's close_stdin in close_io.
Depends-on:github.com/kata-containers/tests#5155
Fixes : #4729
Signed-off-by: Bin Liu <bin@hyper.sh>
2022-09-29 09:35:17 +08:00
quanweiZhou
901893163f
Merge pull request #5198 from openanolis/share-fs-comment
...
runtime-rs: add comments for runtime-rs shared directory
2022-09-29 09:12:01 +08:00
Greg Kurz
7294e2fa9e
Merge pull request #4387 from snir911/tmp-workflow-main
...
workflow: trigger test-kata-deploy with pull_request and fix workflow_dispatch
2022-09-28 16:42:51 +02:00
Zhongtao Hu
96cf21fad0
runtime-rs: add comments for runtime-rs shared directory
...
add comments for runtime-rs shared directory
Fixes:#5197
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-28 15:46:34 +08:00
Zhongtao Hu
2f1a4b02ee
Merge pull request #5254 from openanolis/chao/update_linux_loader
...
Dragonball: update linux_loader to 0.6.0
2022-09-28 15:04:09 +08:00
Bin Liu
0f6884b8c3
Merge pull request #5252 from zhaoxuat/main
...
modify virtio_net_dev_mgr.rs wrong code comments
2022-09-28 11:34:20 +08:00
Bin Liu
d0be4a285e
Merge pull request #5260 from GabyCT/topic/fixrunkdoc
...
docs: Update urls in runk documentation
2022-09-28 11:30:39 +08:00
Zhongtao Hu
ff053b0808
Merge pull request #5220 from liubin/fix/5184-rs-inotify
...
runtime-rs: support watchable mount
2022-09-28 11:19:53 +08:00
Zhongtao Hu
319caa8e74
Merge pull request #5097 from openanolis/dbg-console
...
runtime-rs: debug console support in runtime
2022-09-28 10:30:22 +08:00
Peng Tao
33b0720119
Merge pull request #5193 from openanolis/origin/kata-deploy
...
kata-deploy: ship the rustified runtime binary
2022-09-28 10:19:16 +08:00
Gabriela Cervantes
9bd941098e
docs: Update urls in runk documentation
...
This PR updates the urls that we have in the runk documentation.
Fixes #5259
Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
2022-09-27 15:45:43 +00:00
Chao Wu
90ecc015e0
Dragonball: update linux_loader to 0.6.0
...
Since linux-loader 0.4.0 and 0.5.0 is yanked due to null terminator bug,
we need to update linux-loader to 0.6.0.
And as_str() function should also be changed.
fixes : #5253
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
2022-09-27 23:01:44 +08:00
Bin Liu
c64e56327f
Merge pull request #5190 from liubin/fix/5189-unbind-as-a-const
...
runtime-rs: define VFIO unbind path as a const
2022-09-27 21:04:18 +08:00
Bin Liu
4a763925e5
runtime-rs: support watchable mount
...
Use watchable mount to support inotify for virtio-fs.
Fixes : #5184
Signed-off-by: Bin Liu <bin@hyper.sh>
2022-09-27 19:08:25 +08:00
zhaoxu
abc26b00bb
dragonball: modify wrong code comments
...
modify virtio_net_dev_mgr.rs wrong code comments
Fixes : #5252
Signed-off-by: zhaoxu <zhaoxu@megvii.com>
2022-09-27 18:32:13 +08:00
Bin Liu
c95cf6dce7
Merge pull request #5250 from liubin/fix/5249-set-timeout-to-zero-for-stream-rpc
...
runtime-rs: set agent timeout to 0 for stream RPCs
2022-09-27 17:39:35 +08:00
Peng Tao
8a2df6b31c
Merge pull request #4931 from jpecholt/snp-support
...
Added SNP-Support for Kata-Containers
2022-09-27 14:17:54 +08:00
Bin Liu
41a3bd87a5
Merge pull request #5161 from liubin/fix/5160-typo-in-configure-hypervisor-sh
...
packaging: fix typo in configure-hypervisor.sh
2022-09-27 13:03:39 +08:00
Bin Liu
20bcaf0e36
runtime-rs: set agent timeout to 0 for stream RPCs
...
For stream RPCs:
- write_stdin
- read_stdout
- read_stderr
there should be no timeout (by setting it to 0).
Fixes : #5249
Signed-off-by: Bin Liu <bin@hyper.sh>
2022-09-27 11:47:37 +08:00
Bin Liu
407e46b1b7
Merge pull request #5218 from bergwolf/github/deps
...
runtime/runtime-rs: update dependency
2022-09-27 11:02:46 +08:00
Bin Liu
414c6a1578
Merge pull request #5175 from bergwolf/revert-kata-deploy-changes-after-3.0.0-rc0-release
...
release: Revert kata-deploy changes after 3.0.0-rc0 release
2022-09-27 11:02:24 +08:00
Bin Liu
a2f207b923
Merge pull request #5163 from liubin/fix/5162-add-test-for-StaticResource
...
runtime-rs: add test for StaticResource
2022-09-26 17:44:20 +08:00
Zhongtao Hu
9d67f5a7e2
Merge pull request #5230 from openanolis/nohc
...
runtime-rs: remove hardcoded string
2022-09-26 16:01:41 +08:00
quanweiZhou
ad87c7ac56
Merge pull request #5206 from openanolis/hypervisor/readme
...
docs: add README for runtime-rs hypervisor crate
2022-09-26 16:01:12 +08:00
Bin Liu
5a98fb8d2b
Merge pull request #5186 from liubin/fix/5185
...
runtime-rs: use Path.is_file to check regular files
2022-09-26 12:33:47 +08:00
GabyCT
f7f05f238e
Merge pull request #5233 from GabyCT/topic/exportlibseccomp
...
osbuilder: Export directory variables for libseccomp
2022-09-23 13:54:14 -05:00
Zhongtao Hu
4a36bb9e21
Merge pull request #4924 from openanolis/runtime-rs-netUT
...
runtime-rs: add unit tests for network resource
2022-09-23 17:45:24 +08:00
Zhongtao Hu
274de024c5
docs: add README for runtime-rs hypervisor crate
...
add README for runtime-rs hypervisor crate
Fixes:#4634
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-23 15:20:02 +08:00
Chao Wu
9cf5de0b4e
Merge pull request #5171 from liubin/fix/5170-use-macro
...
runtime-rs/resource: use macro to reduce duplicated code
2022-09-23 10:59:53 +08:00
wangyongchao.bj
04bbce8dc3
virtcontainers: add warn log record for qmp hotplug cpu error
...
The qmp command of hotplug cpu failed error was hidden. It didn't friendly for
the user tracing the hotplug cpu error. The PR help us to improve the hotplug
cpu error log. Add real qemu command error log for `failed to hot add vCPUs`.
Through the error message, we can get the reason of the failed qmp command
for hotplug cpu operation.
Fixes : #5234
Signed-off-by: wangyongchao.bj <wangyongchao.bj@inspur.com>
2022-09-23 08:22:30 +08:00
Gabriela Cervantes
a4a23457ca
osbuilder: Export directory variables for libseccomp
...
To avoid the random failures when we are building the rootfs as it seems
that it does not find the value for the libseccomp and gperf directory,
this PR export these variables.
Fixes #5232
Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
2022-09-22 21:45:20 +00:00
Chelsea Mafrica
de869f2565
Merge pull request #5188 from liubin/fix/5187-incorrect-comments-in-kata-types-hypervisor
...
runtime-rs: fix incorrect comments
2022-09-22 14:09:20 -07:00
Zhongtao Hu
d663f110d7
kata-deploy: get the config path from cri options
...
get the config path for runtime-rs from cri options
Fixes : #5000
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-22 17:39:25 +08:00
Zhongtao Hu
c6b3dcb67d
kata-deploy: support kata-deploy for runtime-rs
...
support kata-deploy for runtime-rs
Fixes:#5000
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-22 17:39:20 +08:00
Ji-Xinyou
46965739a4
runtime-rs: remove hardcoded string
...
Use KATA_PATH instead of "run/kata"
Fixes : #5229
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com>
2022-09-22 16:06:51 +08:00
Zhongtao Hu
a394761a5c
kata-deploy: add installation for runtime-rs
...
setup the compile environment and installation path for the Rust runtime
Fixes:#5000
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-22 15:59:44 +08:00
Peng Tao
ce22a9f134
Merge pull request #5159 from BbolroC/s390-config
...
kernel: Add crypto kernel config for s390
2022-09-22 15:36:24 +08:00
Peng Tao
a2c13bad45
Merge pull request #5156 from fengwang666/uid-reuse-bug
...
Non-root hypervisor uid reuse bug
2022-09-22 15:35:39 +08:00
Peng Tao
af174c2b6d
Merge pull request #5195 from wllenyj/update-dbs
...
Build-in Sandbox: update dragonball-sandbox dependencies
2022-09-22 15:07:11 +08:00
Ji-Xinyou
50299a3292
refactor(runtime-rs): Use RwLock in runtime agent
...
Use RwLock for Agent in runtime, for better concurrency.
Fixes : #5199
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com>
2022-09-21 17:43:40 +08:00
Peng Tao
9628c7df0c
runtime: update runc dependency
...
To bring fix to CVE-2022-29162.
Fixes : #5217
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2022-09-21 17:21:37 +08:00
Peng Tao
7fbc883879
runtime-rs: drop dependency on rustc-serialize
...
We are not using it and it hasn't got any updates for more than five
years, leaving open CVEs unresolved.
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2022-09-21 17:19:58 +08:00
Peng Tao
bf2be0cf7a
release: Revert kata-deploy changes after 3.0.0-rc0 release
...
As 3.0.0-rc0 has been released, let's switch the kata-deploy / kata-cleanup
tags back to "latest", and re-add the kata-deploy-stable and the
kata-cleanup-stable files.
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
2022-09-21 15:19:38 +08:00
snir911
cb977c04bd
Merge pull request #5204 from GabyCT/topic/updatevirt
...
docs: Update url in virtualization document
2022-09-21 10:05:13 +03:00
Ji-Xinyou
e23bfd615e
runtime-rs: make function name more understandable
...
Change kparams to kernel_params for understandability.
Fixes : #5068
Signed-Off-By: Ji-Xinyou <jerryji0414@outlook.com>
2022-09-21 11:48:11 +08:00