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

Required Methods§

source

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

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>

Get the current state of the PIC

source

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

Set the current state of the PIC

source

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

Get the current state of the IOAPIC

source

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

Set the current state of the IOAPIC

source

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

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

source

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

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>

Retrieves the state of the PIT.

source

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

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>

Snapshot state specific to different IrqChips.

source

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

Restore state specific to different IrqChips.

Provided Methods§

source

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

Snapshot state common to IrqChips.

source

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

Restore state common to IrqChips.

Implementors§