Skip to content

Commit e9598b6

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 9041aaa commit e9598b6

File tree

7 files changed

+33
-18
lines changed

7 files changed

+33
-18
lines changed

Cargo.lock

Lines changed: 16 additions & 7 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
@@ -18,8 +18,12 @@ smbios = { path = "../smbios" }
1818
utils = { path = "../utils" }
1919

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

2428
[dev-dependencies]
2529
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.12.1"
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(target_arch = "aarch64")'.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
@@ -23,6 +23,8 @@ libloading = "0.8"
2323
log = "0.4.0"
2424
once_cell = "1.4.1"
2525

26+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
27+
2628
devices = { path = "../devices" }
2729
polly = { path = "../polly" }
2830
utils = { path = "../utils" }
@@ -32,8 +34,8 @@ vmm = { path = "../vmm" }
3234
hvf = { path = "../hvf" }
3335

3436
[target.'cfg(target_os = "linux")'.dependencies]
35-
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
36-
kvm-ioctls = ">=0.21"
37+
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] , git = "https://github.com/virtee/kvm-bindings", branch = "add_bindings_for_realms" }
38+
kvm-ioctls = { version = ">=0.17", git = "https://github.com/virtee/kvm-ioctls", branch = "cca" }
3739
vm-memory = ">=0.13"
3840

3941
[lib]

src/utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ vmm-sys-util = "0.12.1"
1313
crossbeam-channel = "0.5"
1414

1515
[target.'cfg(target_os = "linux")'.dependencies]
16-
kvm-bindings = { version = ">=0.10", features = ["fam-wrappers"] }
16+
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)