diff --git a/Cargo.lock b/Cargo.lock index 1e0bb5f2..7e33521d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -234,6 +234,10 @@ dependencies = [ "vmm-sys-util", ] +[[package]] +name = "vm-vcpu-ref" +version = "0.1.0" + [[package]] name = "vmm" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index e214d535..aa0039fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ vmm = { path = "src/vmm" } api = { path = "src/api" } [workspace] +members = ["src/vm-vcpu-ref"] [profile.dev] panic = "abort" diff --git a/coverage_config_x86_64.json b/coverage_config_x86_64.json index 887ad1ed..c6341d19 100644 --- a/coverage_config_x86_64.json +++ b/coverage_config_x86_64.json @@ -1,5 +1,5 @@ { - "coverage_score": 70.4, + "coverage_score": 70.3, "exclude_path": "msr_index.rs,mpspec.rs,tests/,src/devices/src/virtio/net/bindings.rs", "crate_features": "" } diff --git a/rust-vmm-ci b/rust-vmm-ci index 7931077c..b037be33 160000 --- a/rust-vmm-ci +++ b/rust-vmm-ci @@ -1 +1 @@ -Subproject commit 7931077cdc577edc20af54bf4786de750886fb85 +Subproject commit b037be339677c2f24b7ba676fc9ff893ad474305 diff --git a/src/vm-vcpu-ref/.buildkite/custom-tests.json b/src/vm-vcpu-ref/.buildkite/custom-tests.json new file mode 100644 index 00000000..247b72bb --- /dev/null +++ b/src/vm-vcpu-ref/.buildkite/custom-tests.json @@ -0,0 +1,11 @@ +{ + "tests": [ + { + "test_name": "vm-vcpu_coverage", + "command": "cd src/vm-vcpu-ref/ && pytest rust-vmm-ci/integration_tests/test_coverage.py --test-scope crate", + "platform": [ + "x86_64" + ] + } + ] +} diff --git a/src/vm-vcpu-ref/Cargo.toml b/src/vm-vcpu-ref/Cargo.toml new file mode 100644 index 00000000..6fb4d1c3 --- /dev/null +++ b/src/vm-vcpu-ref/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "vm-vcpu-ref" +version = "0.1.0" +authors = ["rust-vmm AWS maintainers "] +edition = "2018" +description = "Wrappers for setting up a VM for booting" +repository = "https://github.com/rust-vmm/vmm-reference" +readme = "README.md" +license = "Apache-2.0 OR BSD-3-Clause" +keywords = ["virt", "kvm", "vm"] + +[dependencies] diff --git a/src/vm-vcpu-ref/README.md b/src/vm-vcpu-ref/README.md new file mode 100644 index 00000000..d2af0dbd --- /dev/null +++ b/src/vm-vcpu-ref/README.md @@ -0,0 +1,41 @@ +# Crate Name + +## Design + +TODO: This section should have a high-level design of the crate. + +Some questions that might help in writing this section: +- What is the purpose of this crate? +- What are the main components of the crate? How do they interact which each + other? + +## Usage + +TODO: This section describes how the crate is used. + +Some questions that might help in writing this section: +- What traits do users need to implement? +- Does the crate have any default/optional features? What is each feature + doing? +- Is this crate used by other rust-vmm components? If yes, how? + +## Examples + +TODO: Usage examples. + +```rust +use my_crate; + +... +``` + +## License + +**!!!NOTICE**: The BSD-3-Clause license is not included in this template. +The license needs to be manually added because the text of the license file +also includes the copyright. The copyright can be different for different +crates. If the crate contains code from CrosVM, the crate must add the +CrosVM copyright which can be found +[here](https://chromium.googlesource.com/chromiumos/platform/crosvm/+/master/LICENSE). +For crates developed from scratch, the copyright is different and depends on +the contributors. diff --git a/src/vm-vcpu-ref/coverage_config_x86_64.json b/src/vm-vcpu-ref/coverage_config_x86_64.json new file mode 100644 index 00000000..789197c4 --- /dev/null +++ b/src/vm-vcpu-ref/coverage_config_x86_64.json @@ -0,0 +1,5 @@ +{ + "coverage_score": 33.3, + "exclude_path": "", + "crate_features": "" +} diff --git a/src/vm-vcpu-ref/rust-vmm-ci b/src/vm-vcpu-ref/rust-vmm-ci new file mode 120000 index 00000000..d4f0f246 --- /dev/null +++ b/src/vm-vcpu-ref/rust-vmm-ci @@ -0,0 +1 @@ +../../rust-vmm-ci \ No newline at end of file diff --git a/src/vm-vcpu-ref/src/lib.rs b/src/vm-vcpu-ref/src/lib.rs new file mode 100644 index 00000000..a285917f --- /dev/null +++ b/src/vm-vcpu-ref/src/lib.rs @@ -0,0 +1,3 @@ +pub fn main() { + println!("It works!"); +}