Trait arch::IrqChipArch

source ·
pub trait IrqChipArch: IrqChip {
Show 17 methods // Required methods fn try_box_clone(&self) -> Result<Box<dyn IrqChipX86_64>, Error>; fn as_irq_chip(&self) -> &dyn IrqChip; fn as_irq_chip_mut(&mut self) -> &mut dyn IrqChip; fn get_pic_state(&self, select: PicSelect) -> Result<PicState, Error>; fn set_pic_state( &mut self, select: PicSelect, state: &PicState ) -> Result<(), Error>; fn get_ioapic_state(&self) -> Result<IoapicState, Error>; fn set_ioapic_state(&mut self, state: &IoapicState) -> Result<(), Error>; fn get_lapic_state(&self, vcpu_id: usize) -> Result<LapicState, Error>; fn set_lapic_state( &mut self, vcpu_id: usize, state: &LapicState ) -> Result<(), Error>; fn lapic_frequency(&self) -> u32; fn get_pit(&self) -> Result<PitState, Error>; fn set_pit(&mut self, state: &PitState) -> Result<(), Error>; fn pit_uses_speaker_port(&self) -> bool; fn snapshot_chip_specific(&self) -> Result<Value, Error>; fn restore_chip_specific(&mut self, data: Value) -> Result<(), Error>; // Provided methods fn snapshot(&self, cpus_num: usize) -> Result<Value, Error> { ... } fn restore(&mut self, data: Value, vcpus_num: usize) -> Result<(), Error> { ... }
}

Required Methods§

source

fn try_box_clone(&self) -> Result<Box<dyn IrqChipX86_64>, Error>

source

fn as_irq_chip(&self) -> &dyn IrqChip

source

fn as_irq_chip_mut(&mut self) -> &mut dyn IrqChip

source

fn get_pic_state(&self, select: PicSelect) -> Result<PicState, Error>

Get the current state of the PIC

source

fn set_pic_state( &mut self, select: PicSelect, state: &PicState ) -> Result<(), Error>

Set the current state of the PIC

source

fn get_ioapic_state(&self) -> Result<IoapicState, Error>

Get the current state of the IOAPIC

source

fn set_ioapic_state(&mut self, state: &IoapicState) -> Result<(), Error>

Set the current state of the IOAPIC

source

fn get_lapic_state(&self, vcpu_id: usize) -> Result<LapicState, Error>

Get the current state of the specified VCPU’s local APIC

source

fn set_lapic_state( &mut self, vcpu_id: usize, state: &LapicState ) -> Result<(), Error>

Set the current state of the specified VCPU’s local APIC

source

fn lapic_frequency(&self) -> u32

Get the lapic frequency in Hz

source

fn get_pit(&self) -> Result<PitState, Error>

Retrieves the state of the PIT.

source

fn set_pit(&mut self, state: &PitState) -> Result<(), Error>

Sets the state of the PIT.

source

fn pit_uses_speaker_port(&self) -> bool

Returns true if the PIT uses port 0x61 for the PC speaker, false if 0x61 is unused.

source

fn snapshot_chip_specific(&self) -> Result<Value, Error>

Snapshot state specific to different IrqChips.

source

fn restore_chip_specific(&mut self, data: Value) -> Result<(), Error>

Restore state specific to different IrqChips.

Provided Methods§

source

fn snapshot(&self, cpus_num: usize) -> Result<Value, Error>

Snapshot state common to IrqChips.

source

fn restore(&mut self, data: Value, vcpus_num: usize) -> Result<(), Error>

Restore state common to IrqChips.

Implementors§