Commit 7ab92d6
committed
rfc: why do we need to clone EventFd?
In the PoC we are using a `notifier()` call that returns an
`Option<EventFd>`, which essentially means that we need to clone the
file descriptor. This causes us to call `dup`, which seccomp filters
don't like. If instead we just return an `Option<&EventFd>` we don't
need to clone anything. However, not sure if that would work with the
PCIe logic.
Signed-off-by: Babis Chalios <[email protected]>1 parent 253c94d commit 7ab92d6
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
| 403 | + | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments