-
Notifications
You must be signed in to change notification settings - Fork 109
Add support for arm cca #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ edition = "2021" | |
vmm-sys-util = ">= 0.14" | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] } | ||
kvm-ioctls = ">=0.21" | ||
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" } | ||
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" } | ||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment here |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ build = "build.rs" | |
|
||
[features] | ||
tee = [] | ||
cca = [ "tee" ] | ||
amd-sev = [ "blk", "tee" ] | ||
net = [] | ||
blk = [] | ||
|
@@ -19,11 +20,14 @@ nitro = [ "dep:nitro", "dep:nitro-enclaves" ] | |
[dependencies] | ||
crossbeam-channel = ">=0.5.15" | ||
env_logger = "0.11" | ||
vm-memory = { version = ">=0.13", features = ["backend-mmap"] } | ||
libc = ">=0.2.39" | ||
libloading = "0.8" | ||
log = "0.4.0" | ||
once_cell = "1.4.1" | ||
|
||
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment here |
||
|
||
devices = { path = "../devices" } | ||
polly = { path = "../polly" } | ||
utils = { path = "../utils" } | ||
|
@@ -33,8 +37,8 @@ vmm = { path = "../vmm" } | |
hvf = { path = "../hvf" } | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] } | ||
kvm-ioctls = ">=0.21" | ||
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" } | ||
kvm-ioctls = { version = ">=0.21", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" } | ||
nitro = { path = "../nitro", optional = true } | ||
nitro-enclaves = { version = "0.3.0", optional = true } | ||
vm-memory = ">=0.13" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ edition = "2021" | |
[features] | ||
tee = [] | ||
amd-sev = [ "blk", "tee", "codicon", "kbs-types", "procfs", "rdrand", "serde", "serde_json", "sev", "curl" ] | ||
cca = [ "tee" ] | ||
net = [] | ||
blk = [] | ||
efi = [ "blk", "net" ] | ||
|
@@ -40,14 +41,16 @@ sev = { version = "6.0.0", features = ["openssl"], optional = true } | |
curl = { version = "0.4", optional = true } | ||
nix = "0.24.1" | ||
|
||
cca = { git = "https://github.com/virtee/cca" } | ||
|
||
[target.'cfg(target_arch = "x86_64")'.dependencies] | ||
bzip2 = "0.5" | ||
cpuid = { path = "../cpuid" } | ||
zstd = "0.13" | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] } | ||
kvm-ioctls = ">=0.21" | ||
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" } | ||
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" } | ||
Comment on lines
+52
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same branch comment |
||
|
||
[target.'cfg(target_os = "macos")'.dependencies] | ||
hvf = { path = "../hvf" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make a PR once these branches are ready? I'd like to have the deps be on the main branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to use the main branch rather than the cca?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. I'm going to have to make some changes for my TDX work, so I think we'll need to merge your CCA work and my TDX work into the main branch and then use that here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tylerfanelli Do you think we can merge the cca branches into main for kvm-ioctl/bindings repos? Or, shall we have one branch per flavor? Bear in mind that those repo are temporal until changes are upstreamed.