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 {
13941394 Ok ( ( ) )
13951395 }
13961396 }
1397+
1398+ /// Get reference to the underlying vcpu file object.
1399+ pub fn vcpu_file ( & self ) -> & File {
1400+ & self . vcpu
1401+ }
13971402}
13981403
13991404/// 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;
222222pub use ioctls:: device:: DeviceFd ;
223223pub use ioctls:: system:: Kvm ;
224224pub use ioctls:: vcpu:: { VcpuExit , VcpuFd } ;
225- pub use ioctls:: vm:: { IoEventAddress , NoDatamatch , VmFd } ;
225+ pub use ioctls:: vm:: { new_vmfd , IoEventAddress , NoDatamatch , VmFd } ;
226226// The following example is used to verify that our public
227227// structures are exported properly.
228228/// # Example
You can’t perform that action at this time.
0 commit comments