This repository was archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Switch to rust-vmm-ci #16
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
74457b3
Switch to rust-vmm-ci
andreeaflorescu 5ff48d5
fam_wrappers: simplify imports
andreeaflorescu 5572f0f
make kernel bindings mutually exclusive
andreeaflorescu 6793878
rust-vmm-ci: disable clippy warnings
andreeaflorescu abc9368
fix link issues on aarch64 musl
andreeaflorescu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This workaround is needed because the linker is unable to find __addtf3, | ||
# __multf3 and __subtf3. | ||
# Related issue: https://github.com/rust-lang/compiler-builtins/issues/201 | ||
[target.aarch64-unknown-linux-musl] | ||
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "rust-vmm-ci"] | ||
path = rust-vmm-ci | ||
url = https://github.com/rust-vmm/rust-vmm-ci.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"coverage_score": 67.4, | ||
"exclude_path": "", | ||
"crate_features": "fam-wrappers" | ||
alxiord marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} |
Submodule rust-vmm-ci
added at
c309d0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[cfg(feature = "kvm-v4_14_0")] | ||
// Export 4.14 bindings when the feature kvm-v4_20_0 is not specified. | ||
#[cfg(all(feature = "kvm-v4_14_0", not(feature = "kvm-v4_20_0")))] | ||
#[allow(clippy::all)] | ||
mod bindings_v4_14_0; | ||
#[cfg(feature = "kvm-v4_20_0")] | ||
mod bindings_v4_20_0; | ||
|
||
// Major hack to have a default version in case no feature is specified: | ||
// If no version is specified by using the features, just use the latest one | ||
// which currently is 4.20. | ||
#[cfg(all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")))] | ||
// Export 4.20 bindings when kvm-v4_20_0 is specified or no kernel version | ||
// related features are specified. | ||
#[cfg(any( | ||
feature = "kvm-v4_20_0", | ||
all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")) | ||
))] | ||
#[allow(clippy::all)] | ||
mod bindings_v4_20_0; | ||
|
||
pub mod bindings { | ||
#[cfg(feature = "kvm-v4_14_0")] | ||
#[cfg(all(feature = "kvm-v4_14_0", not(feature = "kvm-v4_20_0")))] | ||
pub use super::bindings_v4_14_0::*; | ||
|
||
#[cfg(feature = "kvm-v4_20_0")] | ||
pub use super::bindings_v4_20_0::*; | ||
|
||
#[cfg(all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")))] | ||
#[cfg(any( | ||
feature = "kvm-v4_20_0", | ||
all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")) | ||
))] | ||
pub use super::bindings_v4_20_0::*; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[cfg(feature = "kvm-v4_14_0")] | ||
// Export 4.14 bindings when the feature kvm-v4_20_0 is not specified. | ||
#[cfg(all(feature = "kvm-v4_14_0", not(feature = "kvm-v4_20_0")))] | ||
#[allow(clippy::all)] | ||
mod bindings_v4_14_0; | ||
#[cfg(feature = "kvm-v4_20_0")] | ||
mod bindings_v4_20_0; | ||
|
||
// Major hack to have a default version in case no feature is specified: | ||
// If no version is specified by using the features, just use the latest one | ||
// which currently is 4.20. | ||
#[cfg(all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")))] | ||
// Export 4.20 bindings when kvm-v4_20_0 is specified or no kernel version | ||
// related features are specified. | ||
#[cfg(any( | ||
feature = "kvm-v4_20_0", | ||
all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")) | ||
))] | ||
#[allow(clippy::all)] | ||
mod bindings_v4_20_0; | ||
|
||
pub mod bindings { | ||
#[cfg(feature = "kvm-v4_14_0")] | ||
#[cfg(all(feature = "kvm-v4_14_0", not(feature = "kvm-v4_20_0")))] | ||
pub use super::bindings_v4_14_0::*; | ||
|
||
#[cfg(feature = "kvm-v4_20_0")] | ||
pub use super::bindings_v4_20_0::*; | ||
|
||
#[cfg(all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")))] | ||
#[cfg(any( | ||
feature = "kvm-v4_20_0", | ||
all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")) | ||
))] | ||
pub use super::bindings_v4_20_0::*; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.