Re: [PATCH v2 2/2] hv: move the define of MAX_IR_ENTRIES to offline tool
toggle quoted message Show quoted text
-----Original Message-----Can you add following comments at the 1st place (vtd.c) where the MACRO is used?
MAX_IR_ENTRIES is roundup (to power of 2) of CONFIG_MAX_PT_IRQ_ENTRIES.
Also, I want you to add a check somewhere:
ASSERT( ~(MAX_IR_ENTRIES-1UL) & CONFIG_MAX_PT_IRQ_ENTRIES == 0);
You can PR with above changes.
/* Values for entry_type in ACPI_DMAR_DEVICE_SCOPE - device types */