MISRA C deviations for Xen

The following is the list of MISRA C:2012 deviations for the Xen codebase that are not covered by a SAF-x-safe or SAF-x-false-positive-<tool> comment, as specified in docs/misra/documenting-violations.rst; the lack of such comments is usually due to the excessive clutter they would bring to the codebase or the impossibility to express such a deviation (e.g., if it’s composed of several conditions).

Other deviations:

Deviation

Justification

do-while-0 loops

The do-while-0 is a well-recognized loop idiom used by the Xen community and can therefore be used, even though it would cause a number of violations in some instances.

while-0 and while-1 loops

while-0 and while-1 are well-recognized loop idioms used by the Xen community and can therefore be used, even though they would cause a number of violations in some instances.