File tree Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ smbios = { path = "../smbios" }
18
18
utils = { path = " ../utils" }
19
19
20
20
[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 "
23
23
24
24
[dev-dependencies ]
25
25
utils = { path = " ../utils" }
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ edition = "2021"
8
8
vmm-sys-util = " >=0.11"
9
9
10
10
[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 "
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ cpuid = { path = "../cpuid" }
45
45
zstd = " 0.13"
46
46
47
47
[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 "
50
50
51
51
[target .'cfg(target_os = "macos")' .dependencies ]
52
52
hvf = { path = " ../hvf" }
Original file line number Diff line number Diff line change @@ -1070,9 +1070,11 @@ impl Vcpu {
1070
1070
self . fd
1071
1071
. set_sregs ( & state. sregs )
1072
1072
. map_err ( Error :: VcpuSetSregs ) ?;
1073
- self . fd
1074
- . set_xsave ( & state. xsave )
1075
- . map_err ( Error :: VcpuSetXsave ) ?;
1073
+ unsafe {
1074
+ self . fd
1075
+ . set_xsave ( & state. xsave )
1076
+ . map_err ( Error :: VcpuSetXsave ) ?;
1077
+ }
1076
1078
self . fd . set_xcrs ( & state. xcrs ) . map_err ( Error :: VcpuSetXcrs ) ?;
1077
1079
self . fd
1078
1080
. set_debug_regs ( & state. debug_regs )
You can’t perform that action at this time.
0 commit comments