From 69f1b8f726fb30b3628c2449bee7bee939801210 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 1 Jul 2021 21:12:07 +0000 Subject: deploy: 9f025e829ab6ed468cfb51d72ac105624afc3851 --- src/kvm_rs/cap.rs.html | 75 +++++++++++++++++++++++++++++++++++++++++ src/kvm_rs/fmt.rs.html | 38 ++++++++++----------- src/kvm_rs/kvm.rs.html | 82 +++++++++++++++++++++++++++++++++----------- src/kvm_rs/kvm_sys.rs.html | 46 ++++++++++++------------- src/kvm_rs/lib.rs.html | 84 ++++++++++++++++++++++++---------------------- src/kvm_rs/vcpu.rs.html | 60 ++++++++++++++++----------------- src/kvm_rs/vm.rs.html | 32 +++++++++--------- src/kvm_rs/x86_64.rs.html | 4 +-- 8 files changed, 270 insertions(+), 151 deletions(-) create mode 100644 src/kvm_rs/cap.rs.html (limited to 'src/kvm_rs') diff --git a/src/kvm_rs/cap.rs.html b/src/kvm_rs/cap.rs.html new file mode 100644 index 0000000..72b076d --- /dev/null +++ b/src/kvm_rs/cap.rs.html @@ -0,0 +1,75 @@ +cap.rs - source + +
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+
+//! Definitions of KVM capabilities.
+
+use crate::kvm_sys;
+use std::convert::Into;
+
+/// Definition of capabilities that return a bool value indicating whether the capability is
+/// supported or not.
+#[repr(u64)]
+pub enum CapBool {
+    /// Check if capabilities can be queried on VM fds (`KVM_CAP_CHECK_EXTENSION_VM`).
+    CheckExtensionVm = kvm_sys::KVM_CAP_CHECK_EXTENSION_VM,
+}
+
+impl Into<u64> for CapBool {
+    fn into(self) -> u64 {
+        self as u64
+    }
+}
+
+/// Definition of capabilities that return an integer value indicating the amount of the queried
+/// capability.
+#[repr(u64)]
+pub enum CapInt {
+    /// Get the recommended max VPCUs (`KVM_CAP_NR_VCPUS`).
+    NrVcpus = kvm_sys::KVM_CAP_NR_VCPUS,
+    /// Get the possible max VPCUs (`KVM_CAP_MAX_VCPUS`).
+    MaxVcpus = kvm_sys::KVM_CAP_MAX_VCPUS,
+}
+
+impl Into<u64> for CapInt {
+    fn into(self) -> u64 {
+        self as u64
+    }
+}
+
+
+ \ No newline at end of file diff --git a/src/kvm_rs/fmt.rs.html b/src/kvm_rs/fmt.rs.html index ec871ef..006e8c1 100644 --- a/src/kvm_rs/fmt.rs.html +++ b/src/kvm_rs/fmt.rs.html @@ -1,6 +1,6 @@ fmt.rs - source -