mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
dda04eda47
This CL adds trait implementation for PciDevice to handle BAR reprogramming. When BAR reprogramming is detected, the PciDevice checks all ioevents needed, and requests ioevent registeration for events that are in the changed domain. The requests are handled by instances of PciDevice via the trait function ioevent_register_request. Before the CL, ioevent re-registering is unhandled, and PciDevice is broken without notification. After CL, an error message will appear, but device still would not function as the added trait is not implemented. Test: Presubmit Tests. Hotplugged virtio device triggers error IoEventNotSupported as expected. Bug: 271204121 Change-Id: Ibf4bc00cfdce24e508cd50b5009f148c5a49db30 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4310071 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Ningyuan Wang <ningyuan@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |