http://www.valent-blog.eu/2009/05/19/system-call-in-qemu/