making hypervisor c function