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

Method disable_intx

pci/src/vfio.rs:1095–1105  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1093 }
1094
1095 pub(crate) fn disable_intx(&mut self) {
1096 if let Some(intx) = &mut self.interrupt.intx
1097 && intx.enabled
1098 {
1099 if let Err(e) = self.vfio_wrapper.disable_irq(VFIO_PCI_INTX_IRQ_INDEX) {
1100 error!("Could not disable INTx: {e}");
1101 } else {
1102 intx.enabled = false;
1103 }
1104 }
1105 }
1106
1107 pub(crate) fn enable_msi(&self) -> Result<(), VfioPciError> {
1108 if let Some(msi) = &self.interrupt.msi {

Callers 4

dropMethod · 0.80
dropMethod · 0.80

Calls 1

disable_irqMethod · 0.45

Tested by

no test coverage detected