Skip to content

Commit 4dd2348

Browse files
committed
Update KVM crates
Signed-off-by: Tyler Fanelli <[email protected]>
1 parent e53cfc5 commit 4dd2348

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

Cargo.lock

Lines changed: 4 additions & 4 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ smbios = { path = "../smbios" }
1818
utils = { path = "../utils" }
1919

2020
[target.'cfg(target_os = "linux")'.dependencies]
21-
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] }
22-
kvm-ioctls = ">=0.17"
21+
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
22+
kvm-ioctls = ">=0.21"
2323

2424
[dev-dependencies]
2525
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.11"
99

1010
[target.'cfg(target_os = "linux")'.dependencies]
11-
kvm-bindings = { version = ">=0.8", features = ["fam-wrappers"] }
12-
kvm-ioctls = ">=0.17"
11+
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
12+
kvm-ioctls = ">=0.21"

src/vmm/Cargo.toml

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

4747
[target.'cfg(target_os = "linux")'.dependencies]
48-
kvm-bindings = { version = ">=0.10", features = ["fam-wrappers"] }
49-
kvm-ioctls = ">=0.17"
48+
kvm-bindings = { version = ">=0.11", features = ["fam-wrappers"] }
49+
kvm-ioctls = ">=0.21"
5050

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

src/vmm/src/linux/vstate.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,11 @@ impl Vcpu {
10681068
self.fd
10691069
.set_sregs(&state.sregs)
10701070
.map_err(Error::VcpuSetSregs)?;
1071-
self.fd
1072-
.set_xsave(&state.xsave)
1073-
.map_err(Error::VcpuSetXsave)?;
1071+
unsafe {
1072+
self.fd
1073+
.set_xsave(&state.xsave)
1074+
.map_err(Error::VcpuSetXsave)?;
1075+
}
10741076
self.fd.set_xcrs(&state.xcrs).map_err(Error::VcpuSetXcrs)?;
10751077
self.fd
10761078
.set_debug_regs(&state.debug_regs)

0 commit comments

Comments
 (0)