-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(virtio): prevent MSI-X change if irqfd linked
If the MSI-X table entry 0 is mapped to queue 0, and queue 0 is offloaded to a vhost backend, and later the guest maps table entry 1 to queue 0, we will need to find out the iqrfd of table entry 1, and send a message to the vhost backend to update the irqfd. This is much more complicated than just updating table entry 0, which only involves updating the GSI table at the VMM side. For now we simply prevent such changes if a queue is already mapped to an MSI-X entry that is linked to an irqfd. Signed-off-by: Changyuan Lyu <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters