msix: Remove the need for interrupt callback

Now that MsixConfig has access to the irq_fd descriptors associated with
each vector, it can directly write to it anytime it needs to trigger an
interrupt.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-01-09 23:09:39 +01:00
committed by Samuel Ortiz
parent 3fe362e3bd
commit 19aeac40c9
2 changed files with 4 additions and 20 deletions
-5
View File
@@ -498,11 +498,6 @@ impl PciDevice for VirtioPciDevice {
fn assign_msix(&mut self, msi_cb: Arc<InterruptDelivery>) {
if let Some(msix_config) = &self.msix_config {
msix_config
.lock()
.unwrap()
.register_interrupt_cb(msi_cb.clone());
let msix_config_clone = msix_config.clone();
let common_config_msi_vector = self.common_config.msix_config.clone();