Trait devices::irqchip::IrqChipX86_64  
source · 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<AnySnapshot>;
    fn restore_chip_specific(&mut self, data: AnySnapshot) -> Result<()>;
    // Provided methods
    fn snapshot(&self, cpus_num: usize) -> Result<AnySnapshot> { ... }
    fn restore(&mut self, data: AnySnapshot, vcpus_num: usize) -> Result<()> { ... }
}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
sourcefn get_pic_state(&self, select: PicSelect) -> Result<PicState>
 
fn get_pic_state(&self, select: PicSelect) -> Result<PicState>
Get the current state of the PIC
sourcefn set_pic_state(&mut self, select: PicSelect, state: &PicState) -> Result<()>
 
fn set_pic_state(&mut self, select: PicSelect, state: &PicState) -> Result<()>
Set the current state of the PIC
sourcefn get_ioapic_state(&self) -> Result<IoapicState>
 
fn get_ioapic_state(&self) -> Result<IoapicState>
Get the current state of the IOAPIC
sourcefn set_ioapic_state(&mut self, state: &IoapicState) -> Result<()>
 
fn set_ioapic_state(&mut self, state: &IoapicState) -> Result<()>
Set the current state of the IOAPIC
sourcefn get_lapic_state(&self, vcpu_id: usize) -> Result<LapicState>
 
fn get_lapic_state(&self, vcpu_id: usize) -> Result<LapicState>
Get the current state of the specified VCPU’s local APIC
sourcefn set_lapic_state(&mut self, vcpu_id: usize, state: &LapicState) -> Result<()>
 
fn set_lapic_state(&mut self, vcpu_id: usize, state: &LapicState) -> Result<()>
Set the current state of the specified VCPU’s local APIC
sourcefn lapic_frequency(&self) -> u32
 
fn lapic_frequency(&self) -> u32
Get the lapic frequency in Hz
sourcefn pit_uses_speaker_port(&self) -> bool
 
fn pit_uses_speaker_port(&self) -> bool
Returns true if the PIT uses port 0x61 for the PC speaker, false if 0x61 is unused.
sourcefn snapshot_chip_specific(&self) -> Result<AnySnapshot>
 
fn snapshot_chip_specific(&self) -> Result<AnySnapshot>
Snapshot state specific to different IrqChips.
sourcefn restore_chip_specific(&mut self, data: AnySnapshot) -> Result<()>
 
fn restore_chip_specific(&mut self, data: AnySnapshot) -> Result<()>
Restore state specific to different IrqChips.
Provided Methods§
sourcefn snapshot(&self, cpus_num: usize) -> Result<AnySnapshot>
 
fn snapshot(&self, cpus_num: usize) -> Result<AnySnapshot>
Snapshot state common to IrqChips.