Re: [PATCH v2 2/2] hv: move the define of MAX_IR_ENTRIES to offline tool
On Wed, May 18, 2022 at 02:10:32AM +0800, Dong, Eddie wrote:
Now we did this check-----Original Message-----Can you add following comments at the 1st place (vtd.c) where the MACRO is used?
#if ((MAX_IR_ENTRIES < 256U) || (MAX_IR_ENTRIES > 0x10000U) || (MAX_IR_ENTRIES & (MAX_IR_ENTRIES -1)) != 0U)
#error "MAX_IR_ENTRIES must in the region of [256,0x10000] and be 2^n"
in misc/hv_prebuild/static_checks.c already.