mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
3fe362e3bd
commit
19aeac40c9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user