From 091d408a87d0f73f1c4e0166849ca9a566f005e0 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 15 Nov 2023 21:40:27 +0000 Subject: deploy: f52d556e0e1bf2350b3b42cff198550a267ceb0b --- kvm_rs/vcpu/enum.KvmExit.html | 43 ++++++++++++------------------ kvm_rs/vcpu/index.html | 16 ++---------- kvm_rs/vcpu/sidebar-items.js | 2 +- kvm_rs/vcpu/struct.Vcpu.html | 61 ++++++++++++++++++------------------------- 4 files changed, 46 insertions(+), 76 deletions(-) (limited to 'kvm_rs/vcpu') diff --git a/kvm_rs/vcpu/enum.KvmExit.html b/kvm_rs/vcpu/enum.KvmExit.html index 1bc8f5e..60efe11 100644 --- a/kvm_rs/vcpu/enum.KvmExit.html +++ b/kvm_rs/vcpu/enum.KvmExit.html @@ -1,30 +1,21 @@ -KvmExit in kvm_rs::vcpu - Rust -
pub enum KvmExit<'cpu> {
+KvmExit in kvm_rs::vcpu - Rust

Enum kvm_rs::vcpu::KvmExit

source ·
pub enum KvmExit<'cpu> {
     Halt,
-    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.

+ 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])

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).

+

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§

§

impl<'cpu> RefUnwindSafe for KvmExit<'cpu>

§

impl<'cpu> Send for KvmExit<'cpu>

§

impl<'cpu> Sync for KvmExit<'cpu>

§

impl<'cpu> Unpin for KvmExit<'cpu>

§

impl<'cpu> !UnwindSafe for KvmExit<'cpu>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

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.

-
- \ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::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 2fc5904..c2a404f 100644 --- a/kvm_rs/vcpu/index.html +++ b/kvm_rs/vcpu/index.html @@ -1,14 +1,2 @@ -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 +kvm_rs::vcpu - Rust

Module kvm_rs::vcpu

source ·
Expand description

VCPU system ioctls.

+

Structs

  • Wrapper for VCPU ioctls.

Enums

\ No newline at end of file diff --git a/kvm_rs/vcpu/sidebar-items.js b/kvm_rs/vcpu/sidebar-items.js index 352c960..50995ef 100644 --- a/kvm_rs/vcpu/sidebar-items.js +++ b/kvm_rs/vcpu/sidebar-items.js @@ -1 +1 @@ -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 +window.SIDEBAR_ITEMS = {"enum":["KvmExit"],"struct":["Vcpu"]}; \ No newline at end of file diff --git a/kvm_rs/vcpu/struct.Vcpu.html b/kvm_rs/vcpu/struct.Vcpu.html index e2f3d32..4272687 100644 --- a/kvm_rs/vcpu/struct.Vcpu.html +++ b/kvm_rs/vcpu/struct.Vcpu.html @@ -1,39 +1,30 @@ -Vcpu in kvm_rs::vcpu - Rust -
-

Struct kvm_rs::vcpu::Vcpu

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

Wrapper for VCPU ioctls.

+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 -kvm_regs.

-

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 -kvm_sregs.

-

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

-

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 +

Implementations§

source§

impl Vcpu

source

pub fn get_regs(&self) -> Result<kvm_regs>

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

+
source

pub fn set_regs(&self, regs: kvm_regs) -> Result<()>

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

+
source

pub fn get_sregs(&self) -> Result<kvm_sregs>

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

+
source

pub fn set_sregs(&self, sregs: kvm_sregs) -> Result<()>

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

+
source

pub fn get_debugregs(&self) -> Result<kvm_debugregs>

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

+
source

pub fn set_debugregs(&self, dregs: kvm_debugregs) -> Result<()>

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

+
source

pub fn set_single_step(&self, enable: bool) -> Result<()>

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).

+
source

pub fn run(&mut self) -> Result<KvmExit<'_>>

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

+

Auto Trait Implementations§

§

impl RefUnwindSafe for Vcpu

§

impl !Send for Vcpu

§

impl !Sync for Vcpu

§

impl Unpin for Vcpu

§

impl UnwindSafe for Vcpu

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

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.

-
- \ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file -- cgit v1.2.3