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" }
1818utils = { 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 ]
2525utils = { path = " ../utils" }
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ edition = "2021"
88vmm-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 "
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ cpuid = { path = "../cpuid" }
4545zstd = " 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 ]
5252hvf = { path = " ../hvf" }
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments