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