Re: [PATCH v6 4/4] hv: refine the define of *PIO_IDX


chenli.wei
 

On 5/13/2022 2:56 AM, Eddie Dong wrote:
A reminder: using enumeration constants as integers is prohibited by ACRN
coding guideline.
Aaa, If this is the case, we have to drop this patch.
OK.

I have drop this patch and send others to PR.


In this case the enumeration above is not exhaustive (due to the variable
number of UARTs) and will eventually trigger enum to integer conversions
somewhere in the code.

--
Best Regards
Junjie Mao

/**
* @brief The handler of VM exits on I/O instructions
*



Join acrn-dev@lists.projectacrn.org to automatically receive all group messages.