Some code are spent for nest case since the build system does not support subdir Makefile. It would be nice if qemu can change the build system like kernel's build system one day, then we can avoid these troubles.
The code looks fine. Reviewed-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com>