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
Bin Liu
25be4d00fd
Merge pull request #4676 from openanolis/xuejun/runtime-rs
...
runtime-rs: fix some bugs to make runtime-rs on aarch64
2022-07-18 23:29:32 +08:00
xuejun-xj
99654ce694
runtime-rs: update dbs-xxx dependencies
...
Update dbs-xxx commit ID for aarch64 in runtime-rs/Cargo.toml file to add
dependencies for aarch64.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +08:00
xuejun-xj
f4c3adf596
runtime-rs: Add compile option file
...
Add file aarch64-options.mk for compiling on aarch64 architectures.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +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
xuejun-xj
2b01e9ba40
dragonball: fix warning
...
Add map_err for vcpu_manager.set_reset_event_fd() function.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 09:52:13 +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
Bin Liu
9f49f7adca
Merge pull request #4493 from openanolis/runtime-rs-dev
...
runtime-rs: hypervisor part
2022-07-14 13:49:34 +08:00
Quanwei Zhou
3c989521b1
dragonball: update for review
...
update for review
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-14 10:43:59 +08:00
wllenyj
274598ae56
kata-runtime: add dragonball config check support.
...
add dragonball config check support.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-14 10:43:50 +08:00
Chao Wu
1befbe6738
runtime-rs: Cargo lock for fix version problem
...
Cargo lock for fix version problem
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-14 08:49:39 +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
3f6123b4dd
libs: update configuration and annotations
...
1. support annotation for runtime.name, hypervisor_name, agent_name.
2. fix parse memory from annotation
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-14 08:49:17 +08:00
Bin Liu
f3335c99ce
Merge pull request #4614 from Tim-0731-Hzt/runtime-rs-merge-main
...
Runtime-rs merge main
2022-07-12 19:25:11 +08:00
Bin Liu
b424cf3c90
Merge pull request #4544 from openanolis/anolis/virtio_device_aarch64
...
runtime-rs: Dragonball-sandbox - add virtio device feature support for aarch64
2022-07-12 12:39:31 +08:00
xuejun-xj
d2584991eb
dragonball: fix dependency unused warning
...
Fix the warning "unused import: `dbs_arch::gic::Error as GICError`" and
"unused import: `dbs_arch::gic::GICDevice`" in file src/vm/mod.rs when
compiling.
Fixes : #4544
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-11 17:55:04 +08:00
xuejun-xj
458f6f42f6
dragonball: use const string for legacy device type
...
As string "com1", "com2" and "rtc" are used in two files
(device_manager/mod.rs and device_manager/legacy.rs), we use public
const variables COM1, COM2 and RTC to replace them respectively.
Fixes : #4544
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-11 17:46:10 +08:00
James O. D. Hunt
58b0fc4794
Merge pull request #4192 from Tim-0731-Hzt/runtime-rs
...
kata 3.0 Architecture
2022-07-11 09:34:17 +01:00
Zhongtao Hu
0826a2157d
Merge remote-tracking branch 'origin/main' into runtime-rs-1
...
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-11 09:47:23 +08:00
Zhongtao Hu
939959e726
docs: add Dragonball to hypervisors
...
Fixes:#4193
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-11 09:38:17 +08:00
xuejun-xj
f6f96b8fee
dragonball: add legacy device support for aarch64
...
Implement RTC device for aarch64.
Fixes : #4544
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-10 17:35:30 +08:00
xuejun-xj
7a4183980e
dragonball: add device info support for aarch64
...
Implement generate_virtio_device_info() and
get_virtio_mmio_device_info() functions su support the mmio_device_info
member, which is used by FDT.
Fixes : #4544
Signed-off-by: xuejun-xj <jiyunxue@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-10 17:09:59 +08:00
Fabiano Fidêncio
46fd7ce025
Merge pull request #4595 from amshinde/fix-clh-tarball-build
...
Fix clh tarball build
2022-07-08 20:15:30 +02:00
Peng Tao
30da3fb954
Merge pull request #4515 from openanolis/anolis/dragonball-3
...
runtime-rs: built-in Dragonball sandbox part III - virtio-blk, virtio-fs, virtio-net and VMM API support
2022-07-08 23:14:01 +08:00
Fabiano Fidêncio
33360f1710
Merge pull request #4600 from ManaSugi/fix/selinux-hypervisor-config
...
runtime: Fix DisableSelinux config
2022-07-08 13:05:25 +02:00
Bin Liu
f36bc8bc52
Merge pull request #4616 from GabyCT/topic/updatecontainerddoc
...
docs: Update URL links for containerd documentation
2022-07-08 08:49:06 +08:00
Gabriela Cervantes
57c2d8b749
docs: Update URL links for containerd documentation
...
This PR updates some url links related with containerd documentation.
Fixes #4615
Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com >
2022-07-07 21:48:18 +00:00
Archana Shinde
e57a1c831e
build: Mark git repos as safe for build
...
This is not an issue when the build is run as non-privilged user.
Marking these as safe in case where the build may be run as root
or some other user.
Signed-off-by: Archana Shinde <archana.m.shinde@intel.com >
2022-07-07 12:11:00 -07:00
GabyCT
ee3f5558ae
Merge pull request #4606 from liubin/fix/4605-delete-cri-containerd-plugin
...
docs: delete CRI containerd plugin statement
2022-07-07 09:35:36 -05:00
Fabiano Fidêncio
c09634dbc7
Merge pull request #4592 from fidencio/revert-kata-deploy-changes-after-2.5.0-rc0-release
...
release: Revert kata-deploy changes after 2.5.0-rc0 release
2022-07-07 08:59:43 +02:00
liubin
2551924bda
docs: delete CRI containerd plugin statement
...
There is no independent CRI containerd plugin for new containerd,
the related documentation should be updated too.
Fixes : #4605
Signed-off-by: liubin <liubin0329@gmail.com >
2022-07-07 12:06:25 +08:00
Bin Liu
bee7915932
Merge pull request #4533 from bookinabox/simplify-nproc
...
tools/snap: simplify nproc
2022-07-07 11:38:29 +08:00
Chao Wu
9cee52153b
fmt: do cargo fmt and add a dependency for blk_dev
...
fmt: do cargo fmt and add a dependency for blk_dev
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
47a4142e0d
fs: change vhostuser and virtio into const
...
change fs mode vhostuser and virtio into const.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
e14e98bbeb
cpu_topo: add handle_cpu_topology function
...
add handle_cpu_topology funciton to make it easier to understand the
set_vm_configuration function.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
5d3b53ee7b
downtime: add downtime support
...
add downtime support in `resume_all_vcpus_with_downtime`
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
6a1fe85f10
vfio: add vfio as TODO
...
We add vfio as TODO in this commit and create a github issue for this.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
5ea35ddcdc
refractor: remove redundant by_id
...
remove redundant by_id in get_vm_by_id_mut and get_vm_by_id. They are
optimized to get_vm_mut and get_vm.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
b646d7cb37
config: remove ht_enabled
...
Since cpu topology could tell whether hyper thread is enabled or not, we
removed ht_enabled config from VmConfigInfo
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
cb54ac6c6e
memory: remove reserve_memory_bytes
...
This is currently an unsupported feature and we will remove it from the
current code.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
bde6609b93
hotplug: add room for other hotplug solution
...
Add room in the code for other hotplug solution without upcall
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
wllenyj
d88b1bf01c
dragonball: update vsock dependency
...
1. fix vsock device init failed
2. fix VsockDeviceConfigInfo not found
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
dd003ebe0e
Dragonball: change error name and fix compile error
...
Change error name from `StartMicrovm` to `StartMicroVm`,
`StartMicrovmError` to `StartMicroVmError`.
Besides, we fix a compile error in config_manager.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
38957fe00b
UT: fix compile error in unit tests
...
fix compile error in unit tests for DummyConfigInfo.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
wllenyj
11b3f95140
dragonball: add virtio-fs device support
...
Virtio-fs devices are supported.
Fixes : #4257
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
wllenyj
948381bdbe
dragonball: add virtio-net device support
...
Virtio-net devices are supported.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
wllenyj
3d20387a25
dragonball: add virtio-blk device support
...
Virtio-blk devices are supported.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-07 10:32:35 +08:00
Chao Wu
87d38ae49f
Doc: add document for Dragonball API
...
add detailed explanation for Dragonball API
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 10:32:26 +08:00
Zhongtao Hu
2bb1eeaecc
docs: further questions related to upcall
...
add questions and answers for upcall
Fixes:#4193
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-07 09:52:50 +08:00
Zhongtao Hu
026aaeeccc
docs: add FAQ to the report
...
1.provide answers for the qeustions will be frequently asked
2.format the document
Fixes:#4193
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-07 09:52:50 +08:00