title: How is device emulation done in kvm
body: <p>I know that the qemu-kvm does the device emulation stuff in KVM. Is the qemu-kvm being executed in the userspace of the host? So when a kick function is encountered, it exits the VM through a hypercall into the hypervisor, then the hypervisor hand over to
  qemu-kvm in host userspace. Next after doing the needed
  things, the qemu-kvm transits to the hypervisor and then the
  hypervisor back to the VM. So it means there are two system calls one
  from VM-->Hypervisor and qemu-kvm-->Hypervisor? Are these the steps
  that take place or i am wrong? If there is any documentation about
  these kind of stuff, please give me the link. Thank you very much...</p>
  
  <p>Thanks,
  Bala</p>