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/vcpu.rs.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/kvm_rs/vcpu.rs.html') 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)
             }
         }
     }
-- 
cgit v1.2.3