making qemu compatible with kernel refactorting