diff options
author | Xiong Zhang <xiong.y.zhang@intel.corp-partner.google.com> | 2019-11-22 11:29:26 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-07 05:58:48 +0000 |
commit | 3ec8cc4f52b3c4314b2d02a08d4851e58daef587 (patch) | |
tree | dd6f9ff477e32bcbdea3b805001bc4b60998c017 /src/linux.rs | |
parent | 5c6bf3e32ded73afae857b10d5ddd6ca1cfaceb9 (diff) | |
download | crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar.gz crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar.bz2 crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar.lz crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar.xz crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.tar.zst crosvm-3ec8cc4f52b3c4314b2d02a08d4851e58daef587.zip |
Vfio: Ignore vfio device's multifunction flag
PciRoot doesn't support multifunciion which forward pci config r/w from function > 0 to function 0, so if the vfio device have multifunction flag, guest will find the existence of all the other functions, actually it is from the function 0. In order to fix these extra functions, this patch clear the multifunction flag, so guest won't probe the other functions. BUG=chromium:992270 TEST=pass through a device with multifunction into guest Change-Id: I395636411e0d7d2a3729de16e638d7f6b2dde552 Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1954221 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions