From 0f9aca4ef41e9f4dff61c92048f4d60b00d27871 Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 14 Mar 2025 01:15:52 +0000 Subject: deploy: 3ebd8b163dc8d5679d90927de1c2fcd639882362 --- src/kvm_rs/cap.rs.html | 6 ++--- src/kvm_rs/fmt.rs.html | 64 +++++++++++++++++++++++----------------------- src/kvm_rs/kvm.rs.html | 8 +++--- src/kvm_rs/kvm_sys.rs.html | 20 +++++++-------- src/kvm_rs/lib.rs.html | 6 ++--- src/kvm_rs/vcpu.rs.html | 26 +++++++++---------- src/kvm_rs/vm.rs.html | 6 ++--- src/kvm_rs/x86_64.rs.html | 8 +++--- 8 files changed, 72 insertions(+), 72 deletions(-) (limited to 'src/kvm_rs') diff --git a/src/kvm_rs/cap.rs.html b/src/kvm_rs/cap.rs.html index 03bd966..ec39e2d 100644 --- a/src/kvm_rs/cap.rs.html +++ b/src/kvm_rs/cap.rs.html @@ -1,4 +1,5 @@ -cap.rs - source
1
+cap.rs - source

kvm_rs/
cap.rs

+1
 2
 3
 4
@@ -31,8 +32,7 @@
 31
 32
 33
-34
-
//! Definitions of KVM capabilities.
+34
//! Definitions of KVM capabilities.
 
 use crate::kvm_sys;
 use std::convert::Into;
diff --git a/src/kvm_rs/fmt.rs.html b/src/kvm_rs/fmt.rs.html
index 4b49d36..e8a3040 100644
--- a/src/kvm_rs/fmt.rs.html
+++ b/src/kvm_rs/fmt.rs.html
@@ -1,4 +1,5 @@
-fmt.rs - source
1
+fmt.rs - source

kvm_rs/
fmt.rs

+1
 2
 3
 4
@@ -127,22 +128,21 @@
 127
 128
 129
-130
-
use std::fmt;
+130
use std::fmt;
 
 use crate::kvm_sys::{kvm_dtable, kvm_regs, kvm_segment, kvm_sregs};
 use crate::x86_64::*;
 
 impl fmt::Display for kvm_regs {
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(
             f,
-            "rax: {:#018x} rbx: {:#018x} rcx: {:#018x} rdx: {:#018x}\n\
+            "rax: {:#018x} rbx: {:#018x} rcx: {:#018x} rdx: {:#018x}\n\
              rsi: {:#018x} rdi: {:#018x}\n\
              r8 : {:#018x} r9 : {:#018x} r10: {:#018x} r11: {:#018x}\n\
              r12: {:#018x} r13: {:#018x} r14: {:#018x} r15: {:#018x}\n\
              rsp: {:#018x} rbp: {:#018x}\n\
-             rip: {:#018x} rfl: {:#018x} O({}) D({}) I({}) T({}) S({}) Z({}) P({}) C({})",
+             rip: {:#018x} rfl: {:#018x} O({}) D({}) I({}) T({}) S({}) Z({}) P({}) C({})",
             self.rax,
             self.rbx,
             self.rcx,
@@ -174,18 +174,18 @@
 }
 
 impl fmt::Display for kvm_segment {
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         if self.present == 0 {
-            write!(f, "{:#04x} P(0)", self.selector)
+            write!(f, "{:#04x} P(0)", self.selector)
         } else {
             write!(
                 f,
-                "{:#06x} T({}) RPL({}) BASE({:#010x}) LIMIT({:#07x}) P(1) S({}) DPL({}) DB({}) L({}) TYPE({})",
+                "{:#06x} T({}) RPL({}) BASE({:#010x}) LIMIT({:#07x}) P(1) S({}) DPL({}) DB({}) L({}) TYPE({})",
                 self.selector,
                 if seg_selector_ti(self.selector) == 0 {
-                    "GDT"
+                    "GDT"
                 } else {
-                    "LDT"
+                    "LDT"
                 },
                 seg_selector_rpl(self.selector),
                 self.base,
@@ -195,22 +195,22 @@
                 self.db,
                 self.l,
                 match self.type_ {
-                    0 => "D:R---",
-                    1 => "D:R-A-",
-                    2 => "D:RW--",
-                    3 => "D:RWA-",
-                    4 => "D:R--E",
-                    5 => "D:R-AE",
-                    6 => "D:RW-E",
-                    7 => "D:RWAE",
-                    8 => "C:X---",
-                    9 => "C:X-A-",
-                    10 => "C:XR--",
-                    11 => "C:XRA-",
-                    12 => "C:X--C",
-                    13 => "C:X-AC",
-                    14 => "C:XR-C",
-                    15 => "C:XRAC",
+                    0 => "D:R---",
+                    1 => "D:R-A-",
+                    2 => "D:RW--",
+                    3 => "D:RWA-",
+                    4 => "D:R--E",
+                    5 => "D:R-AE",
+                    6 => "D:RW-E",
+                    7 => "D:RWAE",
+                    8 => "C:X---",
+                    9 => "C:X-A-",
+                    10 => "C:XR--",
+                    11 => "C:XRA-",
+                    12 => "C:X--C",
+                    13 => "C:X-AC",
+                    14 => "C:XR-C",
+                    15 => "C:XRAC",
                     _ => unreachable!(),
                 }
             )
@@ -219,16 +219,16 @@
 }
 
 impl fmt::Display for kvm_dtable {
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        write!(f, "BASE({:#018x}) LIMIT({:#07x})", self.base, self.limit)
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+        write!(f, "BASE({:#018x}) LIMIT({:#07x})", self.base, self.limit)
     }
 }
 
 impl fmt::Display for kvm_sregs {
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(
             f,
-            "cs  : {}\n\
+            "cs  : {}\n\
              ds  : {}\n\
              es  : {}\n\
              fs  : {}\n\
@@ -239,7 +239,7 @@
              gdt : {}\n\
              idt : {}\n\
              cr0 : {:#018x} cr2: {:#018x} cr3: {:#018x} cr4: {:#018x}\n\
-             efer: {:#018x}",
+             efer: {:#018x}",
             self.cs,
             self.ds,
             self.es,
diff --git a/src/kvm_rs/kvm.rs.html b/src/kvm_rs/kvm.rs.html
index 557c8d0..d2fae29 100644
--- a/src/kvm_rs/kvm.rs.html
+++ b/src/kvm_rs/kvm.rs.html
@@ -1,4 +1,5 @@
-kvm.rs - source
1
+kvm.rs - source

kvm_rs/
kvm.rs

+1
 2
 3
 4
@@ -70,8 +71,7 @@
 70
 71
 72
-73
-
//! KVM system ioctls.
+73
//! KVM system ioctls.
 
 use std::fs;
 use std::io;
@@ -95,7 +95,7 @@
     /// Open the `/dev/kvm` device.
     pub fn new() -> io::Result<Kvm> {
         let kvm = libcret(unsafe {
-            libc::open("/dev/kvm\0".as_ptr().cast(), libc::O_RDWR | libc::O_CLOEXEC)
+            libc::open("/dev/kvm\0".as_ptr().cast(), libc::O_RDWR | libc::O_CLOEXEC)
         })
         .map(|fd| unsafe { fs::File::from_raw_fd(fd) })?;
 
diff --git a/src/kvm_rs/kvm_sys.rs.html b/src/kvm_rs/kvm_sys.rs.html
index 37de075..aa07b25 100644
--- a/src/kvm_rs/kvm_sys.rs.html
+++ b/src/kvm_rs/kvm_sys.rs.html
@@ -1,4 +1,5 @@
-kvm_sys.rs - source
1
+kvm_sys.rs - source

kvm_rs/
kvm_sys.rs

+1
 2
 3
 4
@@ -267,8 +268,7 @@
 267
 268
 269
-270
-
//! Definitions of the system header [`<linux/kvm.h>`][kvm-h].
+270
//! Definitions of the system header [`<linux/kvm.h>`][kvm-h].
 //!
 //! [kvm-h]: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/kvm.h
 
@@ -277,7 +277,7 @@
 #![allow(dead_code)]
 
 // Generated by `build.rs`.
-include!(concat!(env!("OUT_DIR"), "/kvm_constants.rs"));
+include!(concat!(env!("OUT_DIR"), "/kvm_constants.rs"));
 
 #[repr(C)]
 #[derive(Default, Debug)]
@@ -361,7 +361,7 @@
     pub userspace_addr: u64,
 }
 
-#[cfg(target_arch = "x86_64")]
+#[cfg(target_arch = "x86_64")]
 #[repr(C)]
 #[derive(Default, Debug)]
 pub struct kvm_debugregs {
@@ -380,7 +380,7 @@
     pub arch: kvm_guest_debug_arch,
 }
 
-#[cfg(target_arch = "x86_64")]
+#[cfg(target_arch = "x86_64")]
 #[repr(C)]
 #[derive(Default, Debug)]
 pub(crate) struct kvm_guest_debug_arch {
@@ -423,7 +423,7 @@
     pub is_write: u8,
 }
 
-#[cfg(target_arch = "x86_64")]
+#[cfg(target_arch = "x86_64")]
 #[repr(C)]
 #[derive(Copy, Clone, Debug)]
 pub(crate) struct kvm_run_debug {
@@ -503,13 +503,13 @@
         assert_eq!(mem::size_of::<kvm_run_union_s>(), TEST_KVM_RUN_UNION_S_SIZE);
     }
 
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     #[test]
     fn check_kvm_run_x86() {
         assert_eq!(mem::size_of::<kvm_run_debug>(), TEST_KVM_RUN_DEBUG_SIZE);
     }
 
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     #[test]
     fn check_kvm_debugregs() {
         assert_eq!(mem::size_of::<kvm_debugregs>(), TEST_KVM_DEBUGREGS_SIZE);
@@ -525,7 +525,7 @@
         );
     }
 
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     #[test]
     fn check_kvm_guest_dbg_arch() {
         assert_eq!(
diff --git a/src/kvm_rs/lib.rs.html b/src/kvm_rs/lib.rs.html
index 8f5cba9..0c5985b 100644
--- a/src/kvm_rs/lib.rs.html
+++ b/src/kvm_rs/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

kvm_rs/
lib.rs

+1
 2
 3
 4
@@ -163,8 +164,7 @@
 163
 164
 165
-166
-
use std::convert::{AsMut, AsRef};
+166
use std::convert::{AsMut, AsRef};
 use std::io;
 use std::ops;
 use std::os::unix::io::AsRawFd;
diff --git a/src/kvm_rs/vcpu.rs.html b/src/kvm_rs/vcpu.rs.html
index 1bfda1f..a2a6eb8 100644
--- a/src/kvm_rs/vcpu.rs.html
+++ b/src/kvm_rs/vcpu.rs.html
@@ -1,4 +1,5 @@
-vcpu.rs - source
1
+vcpu.rs - source

kvm_rs/
vcpu.rs

+1
 2
 3
 4
@@ -199,8 +200,7 @@
 199
 200
 201
-202
-
//! VCPU system ioctls.
+202
//! VCPU system ioctls.
 
 use std::fs;
 use std::io;
@@ -214,12 +214,12 @@
 ///
 /// [kvm-run]: https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-run
 /// [kvm-run-struct]: https://www.kernel.org/doc/html/latest/virt/kvm/api.html#the-kvm-run-structure
-pub enum KvmExit<'cpu> {
+pub enum KvmExit<'cpu> {
     Halt,
-    IoIn(u16, &'cpu mut [u8]),
-    IoOut(u16, &'cpu [u8]),
-    MmioRead(u64, &'cpu mut [u8]),
-    MmioWrite(u64, &'cpu [u8]),
+    IoIn(u16, &'cpu mut [u8]),
+    IoOut(u16, &'cpu [u8]),
+    MmioRead(u64, &'cpu mut [u8]),
+    MmioWrite(u64, &'cpu [u8]),
     Debug(u64),
 }
 
@@ -294,7 +294,7 @@
     ///
     /// [kvm-get-debugregs]:
     /// https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-get-debugregs
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     pub fn get_debugregs(&self) -> io::Result<kvm_sys::kvm_debugregs> {
         let mut dregs = kvm_sys::kvm_debugregs::default();
         ioctl(
@@ -310,7 +310,7 @@
     ///
     /// [kvm-set-debugregs]:
     /// https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-set-debugregs
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     pub fn set_debugregs(&self, dregs: kvm_sys::kvm_debugregs) -> io::Result<()> {
         ioctl(
             &self.vcpu,
@@ -324,7 +324,7 @@
     /// [`KVM_GUESTDBG_ENABLE`][kvm-guest-debug] ioctl.
     ///
     /// [kvm-guest-debug]: https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-set-guest-debug
-    #[cfg(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     pub fn set_single_step(&self, enable: bool) -> io::Result<()> {
         let mut dbg = kvm_sys::kvm_guest_debug::default();
 
@@ -352,7 +352,7 @@
     /// reasons described in [`KvmExit`](crate::vcpu::KvmExit).
     ///
     /// [kvm-run]: https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-run
-    pub fn run(&mut self) -> io::Result<KvmExit<'_>> {
+    pub fn run(&mut self) -> io::Result<KvmExit<'_>> {
         ioctl(&self.vcpu, kvm_sys::KVM_RUN, 0)?;
 
         let kvm_run = self.kvm_run.as_mut();
@@ -397,7 +397,7 @@
                 Ok(KvmExit::Debug(debug.pc))
             }
             r @ _ => {
-                todo!("KVM_EXIT_... (exit_reason={}) not implemented!", r)
+                todo!("KVM_EXIT_... (exit_reason={}) not implemented!", r)
             }
         }
     }
diff --git a/src/kvm_rs/vm.rs.html b/src/kvm_rs/vm.rs.html
index f633afe..c60abbe 100644
--- a/src/kvm_rs/vm.rs.html
+++ b/src/kvm_rs/vm.rs.html
@@ -1,4 +1,5 @@
-vm.rs - source
1
+vm.rs - source

kvm_rs/
vm.rs

+1
 2
 3
 4
@@ -66,8 +67,7 @@
 66
 67
 68
-69
-
//! VM system ioctls.
+69
//! VM system ioctls.
 
 use std::fs;
 use std::io;
diff --git a/src/kvm_rs/x86_64.rs.html b/src/kvm_rs/x86_64.rs.html
index fc55e05..b9ebaef 100644
--- a/src/kvm_rs/x86_64.rs.html
+++ b/src/kvm_rs/x86_64.rs.html
@@ -1,4 +1,5 @@
-x86_64.rs - source
1
+x86_64.rs - source

kvm_rs/
x86_64.rs

+1
 2
 3
 4
@@ -159,8 +160,7 @@
 159
 160
 161
-162
-
//! `x86_64` flags and bitfields.
+162
//! `x86_64` flags and bitfields.
 
 pub use x86_64::*;
 
@@ -250,7 +250,7 @@
     pub const CR0_NE: u64 = 1 << 5;
     /// Write Protect.
     ///
-    /// When set supervisor-level procedures can't write to read-only pages.
+    /// When set supervisor-level procedures can't write to read-only pages.
     pub const CR0_WP: u64 = 1 << 16;
     /// Alignment Mask.
     ///
-- 
cgit v1.2.3