Skip to content

Commit 03b9684

Browse files
committed
Use kvm-ioctl and kvm-bindings for cca
This commit will be removed when changes are in upstream. Signed-off-by: Matias Ezequiel Vara Larsen <[email protected]>
1 parent fba02bb commit 03b9684

File tree

7 files changed

+29
-11
lines changed

7 files changed

+29
-11
lines changed

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/arch/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ smbios = { path = "../smbios" }
1919
utils = { path = "../utils" }
2020

2121
[target.'cfg(target_os = "linux")'.dependencies]
22-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
23-
kvm-ioctls = ">=0.21"
22+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
23+
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }
24+
25+
26+
[target.'cfg(target_arch = "aarch64")'.dependencies]
27+
vm-fdt = ">= 0.2.0"
2428

2529
[dev-dependencies]
2630
utils = { path = "../utils" }

src/cpuid/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ edition = "2021"
88
vmm-sys-util = ">= 0.14"
99

1010
[target.'cfg(target_os = "linux")'.dependencies]
11-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
12-
kvm-ioctls = ">=0.21"
11+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
12+
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }

src/devices/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ lru = ">=0.9"
4343
[target.'cfg(target_os = "linux")'.dependencies]
4444
rutabaga_gfx = { path = "../rutabaga_gfx", features = ["x"], optional = true }
4545
caps = "0.5.5"
46-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
47-
kvm-ioctls = ">=0.21"
46+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
47+
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }
4848

4949
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]
5050
vm-fdt = ">= 0.2.0"

src/libkrun/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ libloading = "0.8"
2424
log = "0.4.0"
2525
once_cell = "1.4.1"
2626

27+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
28+
2729
devices = { path = "../devices" }
2830
polly = { path = "../polly" }
2931
utils = { path = "../utils" }
@@ -33,8 +35,8 @@ vmm = { path = "../vmm" }
3335
hvf = { path = "../hvf" }
3436

3537
[target.'cfg(target_os = "linux")'.dependencies]
36-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
37-
kvm-ioctls = ">=0.21"
38+
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
39+
kvm-ioctls = { version = ">=0.21", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }
3840
nitro = { path = "../nitro", optional = true }
3941
nitro-enclaves = { version = "0.3.0", optional = true }
4042
vm-memory = ">=0.13"

src/utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ vmm-sys-util = ">= 0.14"
1212
crossbeam-channel = ">=0.5.15"
1313

1414
[target.'cfg(target_os = "linux")'.dependencies]
15-
kvm-bindings = { version = ">=0.10", features = ["fam-wrappers"] }
15+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }

src/vmm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ cpuid = { path = "../cpuid" }
4646
zstd = "0.13"
4747

4848
[target.'cfg(target_os = "linux")'.dependencies]
49-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
50-
kvm-ioctls = ">=0.21"
49+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
50+
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }
5151

5252
[target.'cfg(target_os = "macos")'.dependencies]
5353
hvf = { path = "../hvf" }

0 commit comments

Comments
 (0)