Zhongtao Hu
5d17cbeef7
Merge pull request #5383 from openanolis/chao/update_comments_in_event_manager
...
Dragonball: remove redundant comments in event manager
2022-10-14 15:50:37 +08:00
Bin Liu
3b70c72436
Merge pull request #5395 from wllenyj/dragonball-s390
...
ci: skip s390x for dragonball.
2022-10-13 09:03:08 +08:00
wllenyj
1f1901e059
dragonball: fix clippy warning for aarch64
...
Added aarch64 check.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-12 18:29:00 +08:00
wllenyj
a343c570e4
dragonball: enhance dragonball ci
...
Unified use of Makefile instead of calling `cargo test` directly.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-12 17:53:01 +08:00
wllenyj
6a64fb0eb3
ci: skip s390x for dragonball.
...
Currently, Dragonball only supports x86_64 and aarch64 platforms.
Fixes : #4381
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-12 15:27:45 +08:00
Chao Wu
a743e37daf
Dragonball: delete redundant comments in blk_dev_mgr
...
delete redundent derive part for BlockDeviceMgr.
fixes : #5396
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-10-11 19:41:47 +08:00
wllenyj
26c043dee7
ci: Add dragonball test
...
Enhanced Static-Check of CI to support nested virtualization.
Fixes : #5378
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-11 00:36:20 +08:00
wllenyj
b62b18bf1c
dragonball: fix clippy warning
...
Fixed:
- unnecessary_lazy_evaluations
- derive_partial_eq_without_eq
- redundant_closure
- single_match
- question_mark
- unused-must-use
- redundant_clone
- needless_return
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-10 16:41:40 +08:00
wllenyj
2ddc948d30
Makefile: add dragonball components.
...
Enable ci to run dragonball unit tests.
Fixes : #4899
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-10 16:41:40 +08:00
wllenyj
3fe81fe4ab
dragonball-ut: use skip_if_not_root to skip root case
...
Use skip_if_not_root to skip when unit test requires privileges.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-10 16:41:40 +08:00
wllenyj
72259f101a
dragonball: add more unit test for vmm actions
...
Added more unit tests for vmm actions.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-10-10 16:41:39 +08:00
Chao Wu
9717dc3f75
Dragonball: remove redundant comments in event manager
...
handle_events for EventManager doesn't take max_events as arguments, so
we need to update the comments for it.
p.s. max_events is defined when initializing the EventManager.
fixes : #5382
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-10-09 14:38:12 +08:00
Bin Liu
805e80b2a2
Merge pull request #5278 from openanolis/chao/update_linux_loader_ut
...
dragonball: update ut for kernel config
2022-09-30 11:12:29 +08:00
Jianyong Wu
6d585d5919
dragonball: fix no "as_str" error on Arm
...
Cmdline struct update in the latest linux-loader lib and its as_str
method is changed to as_cstring, thus we need fix it according whereas
the old as_str method is used.
Fixes : #5287
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com >
2022-09-29 21:06:31 +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
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
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
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
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
wllenyj
f6f19917a8
dragonball: update dragonball-sandbox dependencies
...
Updated vmm-sys-util to 0.10.0
Updated virtio-queue to 0.4.0
Updated vm-memory to 0.9.0
Updated linux-loader to 0.5.0
Fixes : #5194
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-09-20 14:48:09 +08:00
qiliangfan
7622452f4b
Dragonball: Fix the problem about stdio console
...
Let stdout stream connect to the com1_device,
Fixes : #5083
Signed-off-by: qiliangfan <fanqiliang@mail.nankai.edu.cn >
2022-09-14 15:53:57 +08:00
Bin Liu
515bdcb138
Merge pull request #4900 from wllenyj/dragonball-ut
...
Built-in Sandbox: add more unit tests for dragonball.
2022-08-31 14:00:07 +08:00
wllenyj
c75970b816
dragonball: add more unit test for config manager
...
Added more unit tests for config manager.
Fixes : #4899
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-08-17 23:46:26 +08: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
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
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
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
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
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
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
wllenyj
090de2dae2
dragonball: fix the clippy errors.
...
fix clippy errors and do fmt in this PR.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-06 11:29:49 +08:00
wllenyj
a1593322bd
dragonball: add vsock api to api server
...
Enables vsock to use the api for device configuration.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-06 11:29:49 +08:00
wllenyj
89b9ba8603
dragonball: add set_vm_configuration api
...
Set virtual machine configuration configurations.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-06 11:29:49 +08:00