|Priority:||4 - Normal|
|Created by:||Patrick Mooney [X]|
|Reported by:||Patrick Mooney [X]|
Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2018-04-25T18:44:01.190Z)
2018-04-26 Queen's Room (Release Date: 2018-04-26)
The userspace driver for bhyve ppt will occasionally use
/dev/mem in order to facilitate PBAR access for devices which have a very specific quirk in how they have laid out their DMA regions. Since this cannot work in a zone, it should either throw an explicit error, or be handed in a secure way by the
ppt kernelspace driver.
Getting this tested was a bit tricky, as I have no devices where the PBA and the MSI-X table share a page. For testing purposes I therefore modified pci_passthru.c to always map the PBA using this interface, even if it wasn't strictly necessary normal operation. Using this change I've still been able to use NVMe devices in passthru without noticing any errors. Testing with the GPU didn't make sense as it doesn't support MSI-X.
illumos-joyent commit 7f4cce258636ed577f781c39e1dac133a2d745b2 (branch master, by Hans Rosenfeld)
OS-6738 bhyve ppt should not use /dev/mem
Reviewed by: Robert Mustacchi <firstname.lastname@example.org>
Reviewed by: Jerry Jelinek <email@example.com>
Reviewed by: Patrick Mooney <firstname.lastname@example.org>
Approved by: Jerry Jelinek <email@example.com>