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
wllenyj
95fa0c70c3
dragonball: add start microvm support
...
We add microvm start related support in thie pull request.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-06 11:29:49 +08:00
wllenyj
5c1ccc376b
dragonball: add Vmm struct
...
The Vmm struct is global coordinator to manage API servers, virtual
machines etc.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-06 11:29:49 +08:00
Jiang Liu
4d234f5742
dragonball: refactor code layout
...
Refactored some code layout.
Signed-off-by: Jiang Liu <gerry@linux.alibaba.com >
2022-07-06 11:29:49 +08:00
wllenyj
cfd5dae47c
dragonball: add vm struct
...
The vm struct to manage resources and control states of an virtual
machine instance.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-06 11:29:46 +08:00
wllenyj
527b73a8e5
dragonball: remove unused feature in AddressSpaceMgr
...
log_dirty_pages is useless now and will be redesigned to support live
migration in the future.
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-07-06 11:28:32 +08:00
Peng Tao
514b4e7235
Merge pull request #4543 from openanolis/anolis/add_vcpu_configure_aarch64
...
runtime-rs: Dragonball sandbox - add Vcpu::configure() function for aarch64
2022-07-05 17:47:40 +08:00
xuejun-xj
7120afe4ed
dragonball: add vcpu test function for aarch64
...
add create_vcpu() function in vcpu test unit for aarch64
Fixes : #4445
Signed-off-by: xuejun-xj <jiyunxue@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-04 15:23:43 +08:00
xuejun-xj
648d285a24
dragonball: add vcpu support for aarch64
...
add configure() function for aarch64 vcpu
Fixes : #4543
Signed-off-by: xuejun-xj <jiyunxue@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-04 15:23:37 +08:00
xuejun-xj
7dad7c89f3
dragonball: update dbs-xxx dependency
...
change to up-to-date commit ID
Fixes : #4543
Signed-off-by: xuejun-xj <jiyunxue@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
2022-07-04 15:23:11 +08:00
James O. D. Hunt
59cab9e835
Merge pull request #4380 from Tim-0731-Hzt/rund/makefile
...
runtime-rs: makefile for dragonball
2022-07-01 09:12:38 +01:00
Bin Liu
18093251ec
Merge pull request #4527 from Tim-0731-Hzt/rund-new/netlink
...
runtime-rs:refactor network model with netlink
2022-07-01 11:12:54 +08:00
Zhongtao Hu
07231b2f3f
runtime-rs:refactor network model with netlink
...
add unit test for tcfilter
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:38:23 +08:00
Zhongtao Hu
c8a9052063
build: format files
...
add Enter at the end of the file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
242992e3de
build: put install methods in utils.mk
...
put install methods in utils.mk to avoid duplication
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
8a697268d0
build: makefile for dragonball config
...
use makefile to generate dragonball config file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:07 +08:00
Zhongtao Hu
9c526292e7
runtime-rs:refactor network model with netlink
...
refactor tcfilter with netlink
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:03:29 +08:00
GabyCT
12c1b9e6d6
Merge pull request #4536 from Tim-0731-Hzt/runtime-rs-kata-main
...
runtime-rs: Merge Main into runtime-rs branch
2022-06-28 10:27:35 -05:00
Zhongtao Hu
f3907aa127
runtime-rs:Merge remote-tracking branch 'origin/main' into runtime-rs-newv
...
Fixes:#4536
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-28 20:58:40 +08:00
Bin Liu
badbbcd8be
Merge pull request #4400 from openanolis/anolis/dragonball-2
...
runtime-rs: built-in Dragonball sandbox part II - vCPU manager
2022-06-28 20:41:36 +08:00
Tim Zhang
916ffb75d7
Merge pull request #4432 from liubin/fix/4420-binary-log
...
shim: support shim v2 logging plugin
2022-06-28 16:29:07 +08:00
Bin Liu
4e30e11b31
shim: support shim v2 logging plugin
...
Now kata shim only supports stdout/stderr of fifo from
containerd/CRI-O, but shim v2 supports logging plugins,
and nerdctl default will use the binary schema for logs.
This commit will add the others type of log plugins:
- file
- binary
In case of binary, kata shim will receive a stdout/stderr like:
binary:///nerdctl?_NERDCTL_INTERNAL_LOGGING=/var/lib/nerdctl/1935db59
That means the nerdctl process will handle the logs(stdout/stderr)
Fixes : #4420
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-06-28 13:54:22 +08:00
Chao Wu
71db2dd5b8
hotplug: add room for future acpi hotplug mechanism
...
In order to support ACPI hotplug in the future with the cooperative work
from the Kata community, we add ACPI feature and dbs-upcall feature to
add room for ACPI hotplug.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-06-27 21:52:36 +08:00
Zizheng Bian
8bb00a3dc8
dragonball: fix a bug when generating kernel boot args
...
We should refuse to generate boot args when hotplugging, not cold starting.
Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com >
2022-06-27 18:12:50 +08:00
Chao Wu
2aedd4d12a
doc: add document for vCPU, api and device
...
Create the document for vCPU and api.
Add some detail in the device document.
Fixes : #4257
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-06-27 18:12:50 +08:00
wllenyj
bec22ad01f
dragonball: add api module
...
It is used to define the vmm communication interface.
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-06-27 18:12:50 +08:00
wllenyj
07f44c3e0a
dragonball: add vcpu manager
...
Manage vcpu related operations.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-06-27 18:12:48 +08:00
wllenyj
78c9718752
dragonball: add upcall support
...
Upcall is a direct communication tool between VMM and guest developed
upon vsock. It is used to implement device hotplug.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com >
2022-06-27 17:04:47 +08:00
wllenyj
7d1953b52e
dragonball: add vcpu
...
Virtual CPU manager for virtual machines.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-06-27 17:04:42 +08:00
wllenyj
468c73b3cb
dragonball: add kvm context
...
KVM operation context for virtual machines.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
Signed-off-by: jingshan <jingshan@linux.alibaba.com >
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
Signed-off-by: wllenyj <wllenyj@linux.alibaba.com >
2022-06-27 16:02:06 +08:00
Bin Liu
27b1bb5ed9
Merge pull request #4467 from egernst/device-pkg
...
device package cleanup/refactor
2022-06-27 14:40:53 +08:00
Eric Ernst
e32bf53318
device: deduplicate state structures
...
Before, we maintained almost identical structures between our persist
API and what we keep for our devices, with the persist API being a
slight subset of device structures.
Let's deduplicate this, now that persist is importing device package.
Json unmarshal of prior persist structure will work fine, since it was
an exact subset of fields.
Fixes : #4468
Signed-off-by: Eric Ernst <eric_ernst@apple.com >
2022-06-26 21:31:29 -07:00
Eric Ernst
f97d9b45c8
runtime: device/persist: drop persist dependency from device pkgs
...
Rather than have device package depend on persist, let's define the
(almost duplicate) structures within device itself, and have the Kata
Container's persist pkg import these.
This'll help avoid unecessary dependencies within our core packages.
Signed-off-by: Eric Ernst <eric_ernst@apple.com >
2022-06-26 21:31:29 -07:00
Eric Ernst
f9e96c6506
runtime: device: move to top level package
...
Let's move device package to runtime/pkg instead of being buried under
virtcontainers.
Signed-off-by: Eric Ernst <eric_ernst@apple.com >
2022-06-26 21:31:29 -07:00
Bin Liu
3880e0c077
agent: refactor reading file timing for debugging
...
In the original code, reads mountstats file and return
the content in the error, but at this time the file maybe
changed, we should return the file content that parsed
line by line to check why there is not a fstype option.
Fixes : #4246
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-06-26 21:27:43 -07:00
Archana Shinde
2488a0f6c0
Merge pull request #4439 from amshinde/update-kernel-to-5.15.46
...
versions: Update kernel to latest LTS version 5.15.48
2022-06-24 11:03:32 -07:00
Fabiano Fidêncio
083ca5f217
Merge pull request #4505 from yoheiueda/agent-debug-build
...
agent: Allow BUILD_TYPE=debug
2022-06-24 14:04:23 +02:00
Fabiano Fidêncio
03fca8b459
Merge pull request #4526 from fidencio/topic/fix-clippy-warnings-and-update-agent-vendored-code
...
Fix clippy warnings and update agent's vendored code
2022-06-24 14:02:28 +02:00
Fabiano Fidêncio
c70d3a2c35
agent: Update the dependencies
...
Let's run a `cargo update` and ensure the deps are up-to-date before we
cut the "-rc0" release.
Fixes : #4525
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
2022-06-24 11:37:25 +02:00
Fabiano Fidêncio
612fd79bae
random: Fix "nonminimal-bool" clippy warning
...
The error shown below was caught during a dependency bump in the CCv0
branch, but we better fix it here first.
```
error: this boolean expression can be simplified
--> src/random.rs:85:21
|
85 | assert!(!ret.is_ok());
| ^^^^^^^^^^^^ help: try: `ret.is_err()`
|
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
error: this boolean expression can be simplified
--> src/random.rs:93:17
|
93 | assert!(!ret.is_ok());
| ^^^^^^^^^^^^ help: try: `ret.is_err()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
```
Fixes : #4523
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
2022-06-24 11:37:05 +02:00