| 9 | #include "virtio_logs.h" |
| 10 | |
| 11 | uint64_t |
| 12 | virtio_negotiate_features(struct virtio_hw *hw, uint64_t host_features) |
| 13 | { |
| 14 | uint64_t features; |
| 15 | |
| 16 | /* |
| 17 | * Limit negotiated features to what the driver, virtqueue, and |
| 18 | * host all support. |
| 19 | */ |
| 20 | features = host_features & hw->guest_features; |
| 21 | VIRTIO_OPS(hw)->set_features(hw, features); |
| 22 | |
| 23 | return features; |
| 24 | } |
| 25 | |
| 26 | |
| 27 | void |
no outgoing calls
no test coverage detected