pub struct Partition { /* private fields */ }
Implementations§
Source§impl Partition
impl Partition
pub fn reset(&self) -> Result<(), WHvError>
pub fn set_property( &self, property: PartitionProperty<'_>, ) -> Result<(), WHvError>
pub fn vp(&self, index: u32) -> Processor<'_>
pub unsafe fn map_range( &self, process: Option<BorrowedHandle<'_>>, data: *mut u8, size: usize, addr: u64, flags: WHV_MAP_GPA_RANGE_FLAGS, ) -> Result<(), WHvError>
pub fn unmap_range(&self, addr: u64, size: u64) -> Result<(), WHvError>
pub fn populate_ranges( &self, ranges: &[WHV_MEMORY_RANGE_ENTRY], access_type: WHV_MEMORY_ACCESS_TYPE, flags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS, ) -> Result<(), WHvError>
pub fn pin_ranges( &self, ranges: &[WHV_MEMORY_RANGE_ENTRY], ) -> Result<(), WHvError>
pub fn unpin_ranges( &self, ranges: &[WHV_MEMORY_RANGE_ENTRY], ) -> Result<(), WHvError>
pub fn interrupt( &self, typ: WHV_INTERRUPT_TYPE, mode: WHV_INTERRUPT_DESTINATION_MODE, trigger: WHV_INTERRUPT_TRIGGER_MODE, destination: u32, vector: u32, ) -> Result<(), WHvError>
pub fn get_interrupt_target_vp_set( &self, mode: WHV_INTERRUPT_DESTINATION_MODE, destination: u64, ) -> Result<Vec<u32>, WHvError>
pub fn tsc_frequency(&self) -> Result<u64, WHvError>
pub fn apic_frequency(&self) -> Result<u64, WHvError>
pub fn reference_time(&self) -> Result<u64, WHvError>
pub fn physical_address_width(&self) -> Result<u32, WHvError>
pub unsafe fn register_doorbell( &self, m: &DoorbellMatch, event: RawHandle, ) -> Result<(), WHvError>
pub fn unregister_doorbell(&self, m: &DoorbellMatch) -> Result<(), WHvError>
pub fn create_vp(&self, index: u32) -> VpBuilder<'_>
pub fn delete_vp(&self, index: u32) -> Result<(), WHvError>
pub fn create_notification_port( &self, parameters: NotificationPortParameters, event: BorrowedHandle<'_>, ) -> Result<NotificationPortHandle, WHvError>
pub fn set_notification_port( &self, handle: &NotificationPortHandle, code: WHV_NOTIFICATION_PORT_PROPERTY_CODE, val: u64, ) -> Result<(), WHvError>
pub fn delete_notification_port(&self, handle: NotificationPortHandle)
pub fn create_trigger( &self, parameters: TriggerParameters, ) -> Result<(TriggerHandle, OwnedHandle), WHvError>
pub fn update_trigger( &self, handle: &TriggerHandle, parameters: TriggerParameters, ) -> Result<(), WHvError>
pub fn delete_trigger(&self, handle: TriggerHandle)
pub fn start_migration(&self) -> Result<MigrationHandle, WHvError>
pub fn complete_migration(&mut self) -> Result<(), WHvError>
pub fn cancel_migration(&self) -> Result<(), WHvError>
pub fn create_device( &self, id: u64, resource: VpciResource, flags: WHV_CREATE_VPCI_DEVICE_FLAGS, event: Option<RawHandle>, ) -> Result<(), WHvError>
pub fn delete_device(&self, id: u64) -> Result<(), WHvError>
pub fn device(&self, id: u64) -> Device<'_>
pub fn suspend_time(&self) -> Result<(), WHvError>
pub fn resume_time(&self) -> Result<(), WHvError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnwindSafe for Partition
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