diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-07-01 23:11:14 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-07-01 23:11:14 +0200 |
commit | 9f025e829ab6ed468cfb51d72ac105624afc3851 (patch) | |
tree | 2aaa2efdd2aced5ace9fedd8e04c020e1a96d575 /src/lib.rs | |
parent | 4e1887f91c3f763fc8cd0797e8d96901139daf60 (diff) | |
download | mini-kvm-rs-9f025e829ab6ed468cfb51d72ac105624afc3851.tar.gz mini-kvm-rs-9f025e829ab6ed468cfb51d72ac105624afc3851.zip |
added support to query caps on kvm fd + few caps
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ use std::io; use std::ops; use std::os::unix::io::AsRawFd; +pub mod cap; mod fmt; pub mod kvm; pub mod kvm_sys; @@ -154,7 +155,7 @@ impl ops::Drop for KvmRun { impl AsRef<kvm_sys::kvm_run> for KvmRun { fn as_ref(&self) -> &kvm_sys::kvm_run { - unsafe { & *(self.ptr as *const kvm_sys::kvm_run) } + unsafe { &*(self.ptr as *const kvm_sys::kvm_run) } } } |