Trait virt::x86::vp::AccessVpState

source ·
pub trait AccessVpState {
    type Error: 'static + Error + Send + Sync;

Show 43 methods // Required methods fn caps(&self) -> &X86PartitionCapabilities; fn commit(&mut self) -> Result<(), Self::Error>; fn registers(&mut self) -> Result<Registers, Self::Error>; fn set_registers(&mut self, value: &Registers) -> Result<(), Self::Error>; fn activity(&mut self) -> Result<Activity, Self::Error>; fn set_activity(&mut self, value: &Activity) -> Result<(), Self::Error>; fn xsave(&mut self) -> Result<Xsave, Self::Error>; fn set_xsave(&mut self, value: &Xsave) -> Result<(), Self::Error>; fn apic(&mut self) -> Result<Apic, Self::Error>; fn set_apic(&mut self, value: &Apic) -> Result<(), Self::Error>; fn xcr(&mut self) -> Result<Xcr0, Self::Error>; fn set_xcr(&mut self, value: &Xcr0) -> Result<(), Self::Error>; fn xss(&mut self) -> Result<Xss, Self::Error>; fn set_xss(&mut self, value: &Xss) -> Result<(), Self::Error>; fn cache_control(&mut self) -> Result<CacheControl, Self::Error>; fn set_cache_control( &mut self, value: &CacheControl, ) -> Result<(), Self::Error>; fn virtual_msrs(&mut self) -> Result<VirtualMsrs, Self::Error>; fn set_virtual_msrs( &mut self, value: &VirtualMsrs, ) -> Result<(), Self::Error>; fn debug_regs(&mut self) -> Result<DebugRegisters, Self::Error>; fn set_debug_regs( &mut self, value: &DebugRegisters, ) -> Result<(), Self::Error>; fn tsc(&mut self) -> Result<Tsc, Self::Error>; fn set_tsc(&mut self, value: &Tsc) -> Result<(), Self::Error>; fn cet(&mut self) -> Result<Cet, Self::Error>; fn set_cet(&mut self, value: &Cet) -> Result<(), Self::Error>; fn cet_ss(&mut self) -> Result<CetSs, Self::Error>; fn set_cet_ss(&mut self, value: &CetSs) -> Result<(), Self::Error>; fn tsc_aux(&mut self) -> Result<TscAux, Self::Error>; fn set_tsc_aux(&mut self, value: &TscAux) -> Result<(), Self::Error>; fn synic_msrs(&mut self) -> Result<SyntheticMsrs, Self::Error>; fn set_synic_msrs( &mut self, value: &SyntheticMsrs, ) -> Result<(), Self::Error>; fn synic_message_page(&mut self) -> Result<SynicMessagePage, Self::Error>; fn set_synic_message_page( &mut self, value: &SynicMessagePage, ) -> Result<(), Self::Error>; fn synic_event_flags_page( &mut self, ) -> Result<SynicEventFlagsPage, Self::Error>; fn set_synic_event_flags_page( &mut self, value: &SynicEventFlagsPage, ) -> Result<(), Self::Error>; fn synic_message_queues( &mut self, ) -> Result<SynicMessageQueues, Self::Error>; fn set_synic_message_queues( &mut self, value: &SynicMessageQueues, ) -> Result<(), Self::Error>; fn synic_timers(&mut self) -> Result<SynicTimers, Self::Error>; fn set_synic_timers( &mut self, value: &SynicTimers, ) -> Result<(), Self::Error>; // Provided methods fn save_all(&mut self) -> Result<VpSavedState, StateError<Self::Error>> { ... } fn restore_all( &mut self, state: &VpSavedState, ) -> Result<(), StateError<Self::Error>> { ... } fn reset_all( &mut self, vp_info: &X86VpInfo, ) -> Result<(), StateError<Self::Error>> { ... } fn check_reset_all(&mut self, vp_info: &X86VpInfo) { ... } fn inspect_all(&mut self, req: Request<'_>) { ... }
}
Expand description

Per-VP state

Required Associated Types§

source

type Error: 'static + Error + Send + Sync

Required Methods§

source

fn caps(&self) -> &X86PartitionCapabilities

Gets the partition’s capabilities.

source

fn commit(&mut self) -> Result<(), Self::Error>

Commits any state changes made with the set_* methods.

source

fn registers(&mut self) -> Result<Registers, Self::Error>

Gets the specified state.

source

fn set_registers(&mut self, value: &Registers) -> Result<(), Self::Error>

Sets the specified state.

source

fn activity(&mut self) -> Result<Activity, Self::Error>

Gets the specified state.

source

fn set_activity(&mut self, value: &Activity) -> Result<(), Self::Error>

Sets the specified state.

source

fn xsave(&mut self) -> Result<Xsave, Self::Error>

Gets the specified state.

source

fn set_xsave(&mut self, value: &Xsave) -> Result<(), Self::Error>

Sets the specified state.

source

fn apic(&mut self) -> Result<Apic, Self::Error>

Gets the specified state.

source

fn set_apic(&mut self, value: &Apic) -> Result<(), Self::Error>

Sets the specified state.

source

fn xcr(&mut self) -> Result<Xcr0, Self::Error>

Gets the specified state.

source

fn set_xcr(&mut self, value: &Xcr0) -> Result<(), Self::Error>

Sets the specified state.

source

fn xss(&mut self) -> Result<Xss, Self::Error>

Gets the specified state.

source

fn set_xss(&mut self, value: &Xss) -> Result<(), Self::Error>

Sets the specified state.

source

fn cache_control(&mut self) -> Result<CacheControl, Self::Error>

Gets the specified state.

source

fn set_cache_control(&mut self, value: &CacheControl) -> Result<(), Self::Error>

Sets the specified state.

source

fn virtual_msrs(&mut self) -> Result<VirtualMsrs, Self::Error>

Gets the specified state.

source

fn set_virtual_msrs(&mut self, value: &VirtualMsrs) -> Result<(), Self::Error>

Sets the specified state.

source

fn debug_regs(&mut self) -> Result<DebugRegisters, Self::Error>

Gets the specified state.

source

fn set_debug_regs(&mut self, value: &DebugRegisters) -> Result<(), Self::Error>

Sets the specified state.

source

fn tsc(&mut self) -> Result<Tsc, Self::Error>

Gets the specified state.

source

fn set_tsc(&mut self, value: &Tsc) -> Result<(), Self::Error>

Sets the specified state.

source

fn cet(&mut self) -> Result<Cet, Self::Error>

Gets the specified state.

source

fn set_cet(&mut self, value: &Cet) -> Result<(), Self::Error>

Sets the specified state.

source

fn cet_ss(&mut self) -> Result<CetSs, Self::Error>

Gets the specified state.

source

fn set_cet_ss(&mut self, value: &CetSs) -> Result<(), Self::Error>

Sets the specified state.

source

fn tsc_aux(&mut self) -> Result<TscAux, Self::Error>

Gets the specified state.

source

fn set_tsc_aux(&mut self, value: &TscAux) -> Result<(), Self::Error>

Sets the specified state.

source

fn synic_msrs(&mut self) -> Result<SyntheticMsrs, Self::Error>

Gets the specified state.

source

fn set_synic_msrs(&mut self, value: &SyntheticMsrs) -> Result<(), Self::Error>

Sets the specified state.

source

fn synic_message_page(&mut self) -> Result<SynicMessagePage, Self::Error>

Gets the specified state.

source

fn set_synic_message_page( &mut self, value: &SynicMessagePage, ) -> Result<(), Self::Error>

Sets the specified state.

source

fn synic_event_flags_page(&mut self) -> Result<SynicEventFlagsPage, Self::Error>

Gets the specified state.

source

fn set_synic_event_flags_page( &mut self, value: &SynicEventFlagsPage, ) -> Result<(), Self::Error>

Sets the specified state.

source

fn synic_message_queues(&mut self) -> Result<SynicMessageQueues, Self::Error>

Gets the specified state.

source

fn set_synic_message_queues( &mut self, value: &SynicMessageQueues, ) -> Result<(), Self::Error>

Sets the specified state.

source

fn synic_timers(&mut self) -> Result<SynicTimers, Self::Error>

Gets the specified state.

source

fn set_synic_timers(&mut self, value: &SynicTimers) -> Result<(), Self::Error>

Sets the specified state.

Provided Methods§

source

fn save_all(&mut self) -> Result<VpSavedState, StateError<Self::Error>>

Save all state that can be restored by a call to restore.

source

fn restore_all( &mut self, state: &VpSavedState, ) -> Result<(), StateError<Self::Error>>

Restore state elements saved in save state.

source

fn reset_all( &mut self, vp_info: &X86VpInfo, ) -> Result<(), StateError<Self::Error>>

Resets all the state elements to their initial state (after machine reset).

source

fn check_reset_all(&mut self, vp_info: &X86VpInfo)

Validates that all state elements are in their initial state (after machine reset).

source

fn inspect_all(&mut self, req: Request<'_>)

Implementors§