[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [virtio-dev] Clarification of VIRTIO_F_EVENT_IDX driver conditions.
Are you sure this is not an implementation bug? My concern is that the helper method in question was originally part of the 0.9.5 specification, even though it is no longer directly provided in the 1.0+ versions of the specification. static inline int vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old_idx) { return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old_idx); } Neither the 0.9.5 nor the current specification mention any requirement of notifying during a wrap, even though the Linux implementation correctly checks that unmentioned case, which was not provided in that 0.9.5 helper method or explicitly mentioned in the current specification. -Patrick Mosca
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]