On 21.11.2025 10:15, Penny Zheng wrote: > Memory access and ALTP2M are two seperate features, while both depending on > helper xenmem_access_to_p2m_access(). So it betters lives in common p2m.c, > other than mem_access.c which will be compiled out when VM_EVENT=n && > ALTP2M=y. > Guard xenmem_access_to_p2m_access() with VM_EVENT || ALTP2M, otherwise it > will become unreachable when both VM_EVENT=n and ALTP2M=n, and hence > violating Misra rule 2.1 > We also need to move declaration from mem_access.h to p2m-common.h > An extra blank line is inserted after each case-block to correct coding > style at the same time. > > Signed-off-by: Penny Zheng <[email protected]>
Acked-by: Jan Beulich <[email protected]>
