Add support for x86, arm and arm64 host. Tested on M2 mac. Signed-off-by: Peter Bee <bijunda1@xiaomi.com>