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
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
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
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
Ji-Xinyou
426a436780
runtime-rs: add unit test and eliminate raw string
...
Add two unit tests for coverage and eliminate raw strings to constant.
Fixes : #5068
Signed-Off-By: Ji-Xinyou <jerryji0414@outlook.com >
2022-09-21 11:47:07 +08:00
Ji-Xinyou
87959cb72d
runtime-rs: debug console support in runtime
...
Read debug console configuration in kernel params.
Fixes : #5068
Signed-Off-By: Ji-Xinyou <jerryji0414@outlook.com >
2022-09-21 11:46:55 +08:00
wllenyj
0399da677d
runtime-rs: update dependencies
...
Updated Cargo.lock.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-09-20 15:00:14 +08:00
Bin Liu
2caee1f38d
runtime-rs: define VFIO unbind path as a const
...
In src/runtime-rs/crates/hypervisor/src/device/vfio.rs,
the path of new_id is defined as a const, but unbind is used
as a local variable, they should be unified to const.
Fixes : #5189
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-09-19 16:08:35 +08:00
Bin Liu
ba013c5d0f
Merge pull request #4744 from openanolis/runtime-rs-static_resource_mgmt
...
runtime-rs: support functionality of static resource management
2022-09-05 11:17:09 +08:00
Derek Lee
7914da72c9
cargo.tomls: Added Apache 2.0 to cargo.tomls
...
One of the checks done by cargo-deny is ensuring all crates have a valid
license. As the rust programs import each other, cargo.toml files
without licenses trigger the check. While I could disable this check
this would be bad practice.
This adds an Apache-2.0 license in the Cargo.toml files.
Some of these files already had a header comment saying it is an Apache
license. As the entire project itself is under an Apache-2.0 license, I
assumed all individual components would also be covered under that
license.
Signed-off-by: Derek Lee <derlee@redhat.com >
2022-08-30 09:30:03 -07:00
Peng Tao
338c282950
dep: update nix dependency
...
To fix CVE-2021-45707 that affects nix < 0.20.2.
Fixes : #4929
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2022-08-17 16:06:26 +08:00
Zhongtao Hu
4d7f3edbaf
runtime-rs: support the functionality of cleanup
...
Cleanup sandbox resource
Fixes : #4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-13 15:56:38 +08:00
Zhongtao Hu
5aa83754e5
runtime-rs: support save to persist file and restore
...
Support the functionality of save and restore for sandbox state
Fixes:#4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-13 15:44:13 +08:00
Ji-Xinyou
4a54876dde
runtime-rs: support static resource management functionality
...
Supports functionalities of static resource management, enabled by
default.
Fixes : #4742
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-08-11 09:46:44 +08:00
Bin Liu
758cc47b32
Merge pull request #4671 from liubin/4670-upgrade-nix
...
kata-sys-util: upgrade nix version
2022-07-18 23:31:07 +08:00
xuejun-xj
545ae3f0ee
runtime-rs: fix warning
...
Module anyhow::anyhow is only used on x86_64 architecture in
crates/hypervisor/src/device/vfio.rs file.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:39 +08:00
liubin
996a6b80bc
kata-sys-util: upgrade nix version
...
New nix is supporting UMOUNT_NOFOLLOW, upgrade nix
version to use this flag instead of the self-defined flag.
Fixes : #4670
Signed-off-by: liubin <liubin0329@gmail.com >
2022-07-15 17:38:15 +08:00
Quanwei Zhou
3d6156f6ec
runtime-rs: support dragonball and runtime-binary
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-14 08:49:30 +08:00
Zhongtao Hu
06f398a34f
runtime-rs: use withContext to evaluate lazily
...
Fixes : #4129
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-10 22:03:13 +08:00
Quanwei Zhou
fd4c26f9c1
runtime-rs: support network resource
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 22:02:58 +08:00
Quanwei Zhou
75e282b4c1
runtime-rs: hypervisor base define
...
Responsible for VM manager, such as Qemu, Dragonball
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-06-10 19:57:45 +08:00