pub struct Partition { /* private fields */ }
Implementations§
Source§impl Partition
impl Partition
pub fn enable_split_irqchip(&self, lines: u32) -> Result<(), Error>
Sourcepub fn enable_x2apic_api(&self) -> Result<(), Error>
pub fn enable_x2apic_api(&self) -> Result<(), Error>
Enable X2APIC IDs in interrupt and LAPIC APIs.
pub fn enable_unknown_msr_exits(&self) -> Result<(), Error>
Sourcepub fn set_bsp(&mut self, vcpu_idx: u32) -> Result<(), Error>
pub fn set_bsp(&mut self, vcpu_idx: u32) -> Result<(), Error>
Set the VCPU index of the BSP. This must be called before any VCPUs are created.
pub fn add_vp(&mut self, vcpu_idx: u32) -> Result<(), Error>
pub fn vp(&self, index: u32) -> Processor<'_>
pub fn request_msi(&self, msi: &kvm_msi) -> Result<(), Error>
pub unsafe fn set_user_memory_region( &self, slot: u32, data: *mut u8, size: usize, addr: u64, readonly: bool, ) -> Result<(), Error>
pub fn set_gsi_routes( &self, routes: &[(u32, RoutingEntry)], ) -> Result<(), Error>
pub fn irqfd(&self, gsi: u32, event: RawFd, assign: bool) -> Result<(), Error>
pub fn irq_line(&self, gsi: u32, level: bool) -> Result<(), Error>
pub fn ioeventfd( &self, datamatch: u64, addr: u64, len: u32, fd: i32, flags: u32, ) -> Result<(), Error>
pub fn create_device(&self, ty: u32, flags: u32) -> Result<Device>
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