Re: [PATCH v2 1/3] util: Introduce virAcpi module

2023-04-06 Thread Andrea Bolognani
On Thu, Apr 06, 2023 at 10:57:02AM +0200, Michal Privoznik wrote: > +++ b/src/util/viracpi.c > +/* Basic sanity check. While there's a type specific data > + * that follows the node header, the node length should be at > + * least size of header itself. */ > +if (nodeHeader->len <

[PATCH v2 1/3] util: Introduce virAcpi module

2023-04-06 Thread Michal Privoznik
The aim of this new module is to contain code that's parsing ACPI tables. For now, only parsing of IORT table is implemented (it's ARM specific table). And since we only need to check whether the table contains SMMU record, the code is very simplified. I've followed the specification published