crosvm/devices/src
Louis-Francis Ratté-Boulianne 775aa4f594 virtio: gpu: add support for non-blocking fence synchronization
A completed fence callback is set in Rutabaga. When the callback
is executed, the descriptor associated with the fence is immediately
marked as used and the control queue is signalled.

As of now, the callback is still called in the main worker thread
when poll_fence() is executed, but once we enable the async callback
feature in virglrenderer, the callback might be called from another
thread. This is the reason everything is protected with mutexes.

The completed_fences hash map keeps track of the latest completed
fence for each context to avoid any race condition.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Change-Id: I6f3f55d21b7f4722721bdc2b16da1b39bae4ff7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2845984
Reviewed-by: Kaiyi Li <kaiyili@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
2021-07-16 02:22:53 +00:00
..
irqchip devices: irqchip: rewrite if-let-else None with ? 2021-05-22 00:43:29 +00:00
pci devices: virtio: iommu: enable virtio IOMMU driver 2021-07-09 05:49:26 +00:00
register_space
usb devices: pci: add PciDevice function to get BARs 2021-05-07 00:37:49 +00:00
utils devices: Fix racy event_loop_test 2021-06-08 18:54:48 +00:00
virtio virtio: gpu: add support for non-blocking fence synchronization 2021-07-16 02:22:53 +00:00
acpi.rs devices: acpi: collapsed nested if inside else 2021-05-06 22:06:57 +00:00
bat.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
bus.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
cmos.rs
direct_io.rs crosvm-direct: p-t support for port and memory I/O. 2021-04-01 03:02:44 +00:00
direct_irq.rs crosvm-direct: interrupt passthrough kernel interface. 2021-03-31 02:12:55 +00:00
i8042.rs
lib.rs vhost_user_devices: Make console use SerialDevice 2021-07-13 16:46:16 +00:00
pit.rs
pl030.rs
proxy.rs devices: Deduplicate mapped file descriptors. 2021-05-03 23:09:47 +00:00
serial.rs Enable KVM_CAP_ARM_PROTECTED_VM when --protected-vm is passed. 2021-03-02 19:04:43 +00:00
serial_device.rs Enable KVM_CAP_ARM_PROTECTED_VM when --protected-vm is passed. 2021-03-02 19:04:43 +00:00
vfio.rs devices: get all possible host IOMMU device supported page sizes 2021-07-09 05:49:27 +00:00