New QEMU cases

This is a proof of concept rebase of @ypu's branch that originated pull request #327. This shows that there's a lot of commits that shouldn't be here, we should find a way to further cleanup and sanitize this.