Qemu cases

This is a very large patch set include 267 sub cases for qemu and the related framework functions.