RFC QEMU: Dynamic trap/untrap of VFIO PCI BARs
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hw/vfio: add a 'disablable' flag to sparse mmaped regionhw/ hw/ include/ +1 more | +33 | 0 replies | |
| 2/2 | hw/vfio/pci: init dynamic-trap-bar-info regionhw/ hw/ hw/ +1 more | +134 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] QEMU: Dynamic trap/untrap of VFIO PCI BARs
This patchset enables PCI BARs to be dynamically trapped/passthroughed in response to vendor driver's needs.
To dynamic trap/untrap PCI BARs, 3 info required:
(1) which part of PCI BARs are to be trapped/passthroughed
(2) when to do the trap/passthrough transition
(3) to trap or to passthrough
Patch 1 let vendor driver specify which sparse mmaped subregions are disablable. Therefore providing the first info.
Patch 2 probes and creates dynamic trap bar info region, whose "dt_fd" field provides the second info, and
"trap" field provide the third info.
The corresponding kernel implementation is at
https://www.spinics.net/lists/kernel/msg3337337.html.
Yan Zhao (2):
hw/vfio: add a 'disablable' flag to sparse mmaped region hw/vfio/pci: init dynamic-trap-bar-info region
hw/vfio/common.c | 28 +++++++- hw/vfio/pci.c | 117 ++++++++++++++++++++++++++++++++++ hw/vfio/pci.h | 5 ++ hw/vfio/trace-events | 4 +- include/hw/vfio/vfio-common.h | 2 + linux-headers/linux/vfio.h | 13 ++++ 6 files changed, 167 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1