Tool to check that x2apic/apic ids are unique for each CPU
Start here
Installation
Using CHIPSEC
Architecture and Modules
Contribution Guide
chipsec.modules.misc package
chipsec.modules.misc.xmlcfg module