File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1394,6 +1394,11 @@ impl VcpuFd {
1394
1394
Ok ( ( ) )
1395
1395
}
1396
1396
}
1397
+
1398
+ /// Get reference to the underlying vcpu file object.
1399
+ pub fn vcpu_file ( & self ) -> & File {
1400
+ & self . vcpu
1401
+ }
1397
1402
}
1398
1403
1399
1404
/// Helper function to create a new `VcpuFd`.
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ pub use cap::Cap;
222
222
pub use ioctls:: device:: DeviceFd ;
223
223
pub use ioctls:: system:: Kvm ;
224
224
pub use ioctls:: vcpu:: { VcpuExit , VcpuFd } ;
225
- pub use ioctls:: vm:: { IoEventAddress , NoDatamatch , VmFd } ;
225
+ pub use ioctls:: vm:: { new_vmfd , IoEventAddress , NoDatamatch , VmFd } ;
226
226
// The following example is used to verify that our public
227
227
// structures are exported properly.
228
228
/// # Example
You can’t perform that action at this time.
0 commit comments