How to implement virtual hardware in QEMU?