Re: [XEN PATCH] x86: p2m-pod: address violation of MISRA C Rule 2.1

2024-06-27 Thread Nicola Vetrini
On 2024-06-28 01:18, Stefano Stabellini wrote: On Thu, 27 Jun 2024, Nicola Vetrini wrote: The label 'out_unmap' is only reachable after ASSERT_UNREACHABLE, so the code below is only executed upon erroneously reaching that program point and calling domain_crash, thus resulting in the for loop aft

Re: [XEN PATCH] x86: p2m-pod: address violation of MISRA C Rule 2.1

2024-06-27 Thread Stefano Stabellini
On Thu, 27 Jun 2024, Nicola Vetrini wrote: > The label 'out_unmap' is only reachable after ASSERT_UNREACHABLE, > so the code below is only executed upon erroneously reaching that > program point and calling domain_crash, thus resulting in the > for loop after 'out_unmap' to become unreachable in so

[XEN PATCH] x86: p2m-pod: address violation of MISRA C Rule 2.1

2024-06-27 Thread Nicola Vetrini
The label 'out_unmap' is only reachable after ASSERT_UNREACHABLE, so the code below is only executed upon erroneously reaching that program point and calling domain_crash, thus resulting in the for loop after 'out_unmap' to become unreachable in some configurations. This is a defensive coding meas