Lines Matching refs:kvm
59 use kvm::*;
325 let kvm = Kvm::new().map_err(Error::CreateKvm)?; in build_vm() localVariable
326 let mut vm = Self::create_vm(&kvm, split_irqchip, mem.clone())?; in build_vm()
331 let vcpu = Vcpu::new(cpu_id as libc::c_ulong, &kvm, &vm).map_err(Error::CreateVcpu)?; in build_vm()
335 &kvm, in build_vm()
398 kvm, in build_vm()
549 fn create_vm(kvm: &Kvm, split_irqchip: bool, mem: GuestMemory) -> Result<Vm> { in create_vm()
550 let vm = Vm::new(&kvm, mem).map_err(Error::CreateVm)?; in create_vm()
576 fn create_irq_chip(_vm: &kvm::Vm) -> Result<Option<File>> { in create_irq_chip()
748 kvm: &Kvm, in configure_vcpu()
755 cpuid::setup_cpuid(kvm, vcpu, cpu_id, num_cpus).map_err(Error::SetupCpuid)?; in configure_vcpu()