mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
9fef2380da
Update EventFd to use SafeDescriptor and add equality check to SafeDescriptor. Two safe descriptors are equal if their underlying RawFds are equal or if they are duplicates of each other created by calling try_clone, which uses dup. This will be used by the KvmSplitIrqChip so it's unregister_irq_event functionality can match KVM's, which will not unregister an irqfd if the event fd does not match. Bug: chromium:1077058 Test: added a test for equality of a cloned SafeDescriptor, and ran all other sys_util tests Change-Id: I8c55a083b4e0d693c7192fa869a60e192829db5e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2265042 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Colin Downs-Razouk <colindr@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
poll_token_derive | ||
src | ||
Cargo.toml |