pub struct WriteMsrExit<'a> {
pub error: &'a mut u8,
pub reason: MsrExitReason,
pub index: u32,
pub data: u64,
}
Expand description
Information about a VcpuExit
triggered by an MSR write (KVM_EXIT_X86_WRMSR
).
Fields§
§error: &'a mut u8
Must be set to 1 by the the user if the write access should fail. This will inject a #GP fault into the guest when the VCPU is executed again.
reason: MsrExitReason
The reason for this exit.
index: u32
The MSR the guest wants to write.
data: u64
The data the guest wants to write into the MSR.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WriteMsrExit<'a>
impl<'a> RefUnwindSafe for WriteMsrExit<'a>
impl<'a> Send for WriteMsrExit<'a>
impl<'a> Sync for WriteMsrExit<'a>
impl<'a> Unpin for WriteMsrExit<'a>
impl<'a> !UnwindSafe for WriteMsrExit<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more