s390/ap,zcrypt,vfio: introduce and use ap_queue_status_reg union
Introduce a new ap queue status register wrapper union to access register wide values. So the inline assembler only sees register wide values but the surrounding code may use a more structured view of the same value and a reader of the code (and the compiler) gets a clear understanding about the mapping between fields and register values. All the changes to access the ap queue status are local to the inline functions within ap.h. However, the struct ap_qirq_ctrl has been replaces by a union for same reason and this needed slight adaptions in the calling code. Suggested-by: NHalil Pasic <pasic@linux.ibm.com> Suggested-by: NAndreas Arnez <arnez@linux.ibm.com> Signed-off-by: NHarald Freudenberger <freude@linux.ibm.com> Acked-by: NHeiko Carstens <hca@linux.ibm.com> Reviewed-by: NHolger Dengler <dengler@linux.ibm.com> Signed-off-by: NHeiko Carstens <hca@linux.ibm.com>
Showing
想要评论请 注册 或 登录