You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`test_new_from_indirect_descriptor` was chaining two indirect
tables, which is not a possible scenario according to the spec
because you can't set VIRTQ_DESC_F_NEXT flag for a descriptor
that is pointing to an indirect table, and when switching to
the indirect table, there is no way to return to the main
descriptor table (the `next` fields of the indirect descriptors
will link to descriptors from the indirect table).
This is also adding a negative test for the following MUST from
the spec: `A driver MUST NOT set both VIRTQ_DESC_F_INDIRECT and
VIRTQ_DESC_F_NEXT in flags.` In case the driver sets this
combination of flags, we just ignore VIRTQ_DESC_F_NEXT flag and
check that the device doesn't panic.
Fixes: #95.
The other MUSTs for indirect descriptors are related to the
feature flags to which we do not have access at the queue level,
so a test wouldn't make much sense.
Signed-off-by: Laura Loghin <lauralg@amazon.com>
0 commit comments