(&mut self)
| 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 { |
no test coverage detected