From c44661b4d904f8be227faef8f84ddb22934a01e8 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 23 Aug 2022 19:58:51 +0000 Subject: deploy: c94950f9dca80387aab264c7aa4044feff76625c --- kvm_rs/vcpu/enum.KvmExit.html | 40 +++++++++++++++++++----------------- kvm_rs/vcpu/index.html | 11 +++++----- kvm_rs/vcpu/sidebar-items.js | 2 +- kvm_rs/vcpu/struct.Vcpu.html | 47 +++++++++++++++++++++++++------------------ 4 files changed, 55 insertions(+), 45 deletions(-) (limited to 'kvm_rs/vcpu') diff --git a/kvm_rs/vcpu/enum.KvmExit.html b/kvm_rs/vcpu/enum.KvmExit.html index 801f168..1bc8f5e 100644 --- a/kvm_rs/vcpu/enum.KvmExit.html +++ b/kvm_rs/vcpu/enum.KvmExit.html @@ -1,28 +1,30 @@ -KvmExit in kvm_rs::vcpu - Rust -
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),
 }
Expand description

Exit reasons for the Vcpu::run function.

Details for the different exit reasons can be found in the kvm_run structure description.

-

Variants

Halt

IoIn(u16&'cpu mut [u8])

IoOut(u16&'cpu [u8])

MmioRead(u64&'cpu mut [u8])

MmioWrite(u64&'cpu [u8])

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Calls U::from(self).

+

Variants

Halt

IoIn(u16, &'cpu mut [u8])

IoOut(u16, &'cpu [u8])

MmioRead(u64, &'cpu mut [u8])

MmioWrite(u64, &'cpu [u8])

Debug(u64)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
+From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/kvm_rs/vcpu/index.html b/kvm_rs/vcpu/index.html index 6b8cc6a..2fc5904 100644 --- a/kvm_rs/vcpu/index.html +++ b/kvm_rs/vcpu/index.html @@ -1,13 +1,14 @@ -kvm_rs::vcpu - Rust -
+

Module kvm_rs::vcpu

source · []
Expand description

VCPU system ioctls.

Structs

Wrapper for VCPU ioctls.

Enums

Exit reasons for the Vcpu::run function.

-
+
\ No newline at end of file diff --git a/kvm_rs/vcpu/sidebar-items.js b/kvm_rs/vcpu/sidebar-items.js index 8310d0b..352c960 100644 --- a/kvm_rs/vcpu/sidebar-items.js +++ b/kvm_rs/vcpu/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["KvmExit","Exit reasons for the [`Vcpu::run`][crate::vcpu::Vcpu::run] function."]],"struct":[["Vcpu","Wrapper for VCPU ioctls."]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":[["KvmExit","Exit reasons for the [`Vcpu::run`][crate::vcpu::Vcpu::run] function."]],"struct":[["Vcpu","Wrapper for VCPU ioctls."]]}; \ No newline at end of file diff --git a/kvm_rs/vcpu/struct.Vcpu.html b/kvm_rs/vcpu/struct.Vcpu.html index b5925b6..e2f3d32 100644 --- a/kvm_rs/vcpu/struct.Vcpu.html +++ b/kvm_rs/vcpu/struct.Vcpu.html @@ -1,32 +1,39 @@ -Vcpu in kvm_rs::vcpu - Rust -
+

Struct kvm_rs::vcpu::Vcpu

source · []
pub struct Vcpu { /* private fields */ }
Expand description

Wrapper for VCPU ioctls.

Representation of the file descriptor obtained by the KVM_CREATE_VCPU ioctl. This wrapper provides access to the VCPU ioctls as described in KVM API.

-

Implementations

Get the general purpose registers with the KVM_GET_REGS ioctl in form of +

Implementations

Get the general purpose registers with the KVM_GET_REGS ioctl in form of kvm_regs.

-

Set the general purpose registers with the KVM_SET_REGS ioctl in form of +

Set the general purpose registers with the KVM_SET_REGS ioctl in form of kvm_regs.

-

Get the special registers with the KVM_GET_SREGS ioctl in form of +

Get the special registers with the KVM_GET_SREGS ioctl in form of kvm_sregs.

-

Set the special registers with the KVM_SET_SREGS ioctl in form of +

Set the special registers with the KVM_SET_SREGS ioctl in form of kvm_sregs.

-

Run the guest VCPU with the KVM_RUN ioctl until it exits with one of the exit +

Get the debug registers with the KVM_GET_DEBUGREGS ioctl in form of +kvm_debugregs.

+

Set the debug registers with the KVM_SET_DEBUGREGS ioctl in form of +kvm_debugregs.

+

Enable or disable guest single steppig (debug) with the +KVM_GUESTDBG_ENABLE ioctl.

+

Run the guest VCPU with the KVM_RUN ioctl until it exits with one of the exit reasons described in KvmExit.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Returns the argument unchanged.

-

Calls U::from(self).

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
+From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file -- cgit v1.2.3