Thanks for the review, Thomas. I've merged the duplicate checks and moved expected[] as suggested.
v2 also removes the x86 restriction, with little-endian DMA accesses and PCI host bridge IOMMU bypass. The tests pass on aarch64 and ppc64 as well as x86. Junjie
