MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / end_of_interrupt

Method end_of_interrupt

devices/src/ioapic.rs:404–412  ·  view source on GitHub ↗

The ioapic must be informed about EOIs in order to deassert interrupts already sent.

(&mut self, vec: u8)

Source from the content-addressed store, hash-verified

402 // The ioapic must be informed about EOIs in order to deassert interrupts
403 // already sent.
404 fn end_of_interrupt(&mut self, vec: u8) {
405 for i in 0..NUM_IOAPIC_PINS {
406 let entry = &mut self.reg_entries[i];
407 // Clear Remote IRR bit
408 if vector(*entry) == vec && trigger_mode(*entry) == 1 {
409 set_remote_irr(entry, 0);
410 }
411 }
412 }
413
414 // This should be called anytime an interrupt needs to be injected into the
415 // running guest.

Callers 1

start_vcpuMethod · 0.80

Calls 3

vectorFunction · 0.85
trigger_modeFunction · 0.85
set_remote_irrFunction · 0.85

Tested by

no test coverage detected