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§
Required Methods§
sourcefn caps(&self) -> &X86PartitionCapabilities
fn caps(&self) -> &X86PartitionCapabilities
Gets the partition’s capabilities.
sourcefn commit(&mut self) -> Result<(), Self::Error>
fn commit(&mut self) -> Result<(), Self::Error>
Commits any state changes made with the set_*
methods.
sourcefn set_registers(&mut self, value: &Registers) -> Result<(), Self::Error>
fn set_registers(&mut self, value: &Registers) -> Result<(), Self::Error>
Sets the specified state.
sourcefn set_activity(&mut self, value: &Activity) -> Result<(), Self::Error>
fn set_activity(&mut self, value: &Activity) -> Result<(), Self::Error>
Sets the specified state.
sourcefn cache_control(&mut self) -> Result<CacheControl, Self::Error>
fn cache_control(&mut self) -> Result<CacheControl, Self::Error>
Gets the specified state.
sourcefn set_cache_control(&mut self, value: &CacheControl) -> Result<(), Self::Error>
fn set_cache_control(&mut self, value: &CacheControl) -> Result<(), Self::Error>
Sets the specified state.
sourcefn virtual_msrs(&mut self) -> Result<VirtualMsrs, Self::Error>
fn virtual_msrs(&mut self) -> Result<VirtualMsrs, Self::Error>
Gets the specified state.
sourcefn set_virtual_msrs(&mut self, value: &VirtualMsrs) -> Result<(), Self::Error>
fn set_virtual_msrs(&mut self, value: &VirtualMsrs) -> Result<(), Self::Error>
Sets the specified state.
sourcefn debug_regs(&mut self) -> Result<DebugRegisters, Self::Error>
fn debug_regs(&mut self) -> Result<DebugRegisters, Self::Error>
Gets the specified state.
sourcefn set_debug_regs(&mut self, value: &DebugRegisters) -> Result<(), Self::Error>
fn set_debug_regs(&mut self, value: &DebugRegisters) -> Result<(), Self::Error>
Sets the specified state.
sourcefn synic_msrs(&mut self) -> Result<SyntheticMsrs, Self::Error>
fn synic_msrs(&mut self) -> Result<SyntheticMsrs, Self::Error>
Gets the specified state.
sourcefn set_synic_msrs(&mut self, value: &SyntheticMsrs) -> Result<(), Self::Error>
fn set_synic_msrs(&mut self, value: &SyntheticMsrs) -> Result<(), Self::Error>
Sets the specified state.
sourcefn synic_message_page(&mut self) -> Result<SynicMessagePage, Self::Error>
fn synic_message_page(&mut self) -> Result<SynicMessagePage, Self::Error>
Gets the specified state.
sourcefn set_synic_message_page(
&mut self,
value: &SynicMessagePage,
) -> Result<(), Self::Error>
fn set_synic_message_page( &mut self, value: &SynicMessagePage, ) -> Result<(), Self::Error>
Sets the specified state.
sourcefn synic_event_flags_page(&mut self) -> Result<SynicEventFlagsPage, Self::Error>
fn synic_event_flags_page(&mut self) -> Result<SynicEventFlagsPage, Self::Error>
Gets the specified state.
sourcefn set_synic_event_flags_page(
&mut self,
value: &SynicEventFlagsPage,
) -> Result<(), Self::Error>
fn set_synic_event_flags_page( &mut self, value: &SynicEventFlagsPage, ) -> Result<(), Self::Error>
Sets the specified state.
sourcefn synic_message_queues(&mut self) -> Result<SynicMessageQueues, Self::Error>
fn synic_message_queues(&mut self) -> Result<SynicMessageQueues, Self::Error>
Gets the specified state.
sourcefn set_synic_message_queues(
&mut self,
value: &SynicMessageQueues,
) -> Result<(), Self::Error>
fn set_synic_message_queues( &mut self, value: &SynicMessageQueues, ) -> Result<(), Self::Error>
Sets the specified state.
sourcefn synic_timers(&mut self) -> Result<SynicTimers, Self::Error>
fn synic_timers(&mut self) -> Result<SynicTimers, Self::Error>
Gets the specified state.
sourcefn set_synic_timers(&mut self, value: &SynicTimers) -> Result<(), Self::Error>
fn set_synic_timers(&mut self, value: &SynicTimers) -> Result<(), Self::Error>
Sets the specified state.
Provided Methods§
sourcefn save_all(&mut self) -> Result<VpSavedState, StateError<Self::Error>>
fn save_all(&mut self) -> Result<VpSavedState, StateError<Self::Error>>
Save all state that can be restored by a call to restore.
sourcefn restore_all(
&mut self,
state: &VpSavedState,
) -> Result<(), StateError<Self::Error>>
fn restore_all( &mut self, state: &VpSavedState, ) -> Result<(), StateError<Self::Error>>
Restore state elements saved in save state.
sourcefn reset_all(
&mut self,
vp_info: &X86VpInfo,
) -> Result<(), StateError<Self::Error>>
fn reset_all( &mut self, vp_info: &X86VpInfo, ) -> Result<(), StateError<Self::Error>>
Resets all the state elements to their initial state (after machine reset).
sourcefn check_reset_all(&mut self, vp_info: &X86VpInfo)
fn check_reset_all(&mut self, vp_info: &X86VpInfo)
Validates that all state elements are in their initial state (after machine reset).