use env as parameter for functions that access kvm_run