summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorZide Chen <zide.chen@intel.corp-partner.google.com>2019-09-26 11:40:49 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-24 20:46:40 +0000
commitd6be9614baea746efbc2744d7a914c95e315ea63 (patch)
tree6f7db5ac846f528fc97dd1e3b00c55754a6c28fe /src/linux.rs
parent1f20497b86985bd927df9c171174a29cf47ce25f (diff)
downloadcrosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar.gz
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar.bz2
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar.lz
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar.xz
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.tar.zst
crosvm-d6be9614baea746efbc2744d7a914c95e315ea63.zip
devices: finish the functions to enable MSI-X
- add a new field "vector" to struct Queue, which represents the entry
  number to the MSI-X Table. This can be used to find out the desired irqfd
  to inject MSI-X interrupts to the guest.
- enable MSI-X when MSI-X Enable bit of the Message Control word is
  being set: allocate irqfd per MSI-X vector; register the irqfd to KVM;
  update GSI routing to KVM.
- update GSI routing if the Message Data or Message Addr of individual
  MSI-X table Entry is being changed in run time.

BUG=chromium:854765
TEST=cargo test -p devices

Change-Id: I81533999ab6cd9ec5f111b256caf34077a4a7d1a
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.corp-partner.google.com>
Signed-off-by: Zide Chen <zide.chen@intel.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1828338
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions