Lines Matching refs:kvm
93 kvm: File, field
112 kvm: unsafe { File::from_raw_descriptor(ret) }, in new_with_path()
205 self.kvm.as_raw_descriptor() in as_raw_descriptor()
274 pub fn new(kvm: &Kvm, guest_mem: GuestMemory) -> Result<Vm> { in new()
277 let ret = unsafe { ioctl(kvm, KVM_CREATE_VM()) }; in new()
958 pub fn new(id: c_ulong, kvm: &Kvm, vm: &Vm) -> Result<Vcpu> { in new()
959 let run_mmap_size = kvm.get_vcpu_mmap_size()?; in new()
1715 let kvm = Kvm::new().unwrap(); in create_vm() localVariable
1717 Vm::new(&kvm, gm).unwrap(); in create_vm()
1722 let kvm = Kvm::new().unwrap(); in check_extension() localVariable
1723 assert!(kvm.check_extension(Cap::UserMemory)); in check_extension()
1725 assert!(!kvm.check_extension(Cap::S390UserSigp)); in check_extension()
1730 let kvm = Kvm::new().unwrap(); in check_vm_extension() localVariable
1732 let vm = Vm::new(&kvm, gm).unwrap(); in check_vm_extension()
1741 let kvm = Kvm::new().unwrap(); in get_supported_cpuid() localVariable
1742 let mut cpuid = kvm.get_supported_cpuid().unwrap(); in get_supported_cpuid()
1750 let kvm = Kvm::new().unwrap(); in get_emulated_cpuid() localVariable
1751 kvm.get_emulated_cpuid().unwrap(); in get_emulated_cpuid()
1757 let kvm = Kvm::new().unwrap(); in get_msr_index_list() localVariable
1758 let msr_list = kvm.get_msr_index_list().unwrap(); in get_msr_index_list()
1764 let kvm = Kvm::new().unwrap(); in add_memory() localVariable
1770 let mut vm = Vm::new(&kvm, gm).unwrap(); in add_memory()
1782 let kvm = Kvm::new().unwrap(); in add_memory_ro() localVariable
1784 let mut vm = Vm::new(&kvm, gm).unwrap(); in add_memory_ro()
1793 let kvm = Kvm::new().unwrap(); in remove_memory_region() localVariable
1795 let mut vm = Vm::new(&kvm, gm).unwrap(); in remove_memory_region()
1809 let kvm = Kvm::new().unwrap(); in remove_invalid_memory() localVariable
1811 let mut vm = Vm::new(&kvm, gm).unwrap(); in remove_invalid_memory()
1817 let kvm = Kvm::new().unwrap(); in overlap_memory() localVariable
1819 let mut vm = Vm::new(&kvm, gm).unwrap(); in overlap_memory()
1829 let kvm = Kvm::new().unwrap(); in get_memory() localVariable
1831 let vm = Vm::new(&kvm, gm).unwrap(); in get_memory()
1841 let kvm = Kvm::new().unwrap(); in clock_handling() localVariable
1843 let vm = Vm::new(&kvm, gm).unwrap(); in clock_handling()
1852 let kvm = Kvm::new().unwrap(); in pic_handling() localVariable
1854 let vm = Vm::new(&kvm, gm).unwrap(); in pic_handling()
1863 let kvm = Kvm::new().unwrap(); in ioapic_handling() localVariable
1865 let vm = Vm::new(&kvm, gm).unwrap(); in ioapic_handling()
1874 let kvm = Kvm::new().unwrap(); in pit_handling() localVariable
1876 let vm = Vm::new(&kvm, gm).unwrap(); in pit_handling()
1885 let kvm = Kvm::new().unwrap(); in register_ioevent() localVariable
1887 let vm = Vm::new(&kvm, gm).unwrap(); in register_ioevent()
1921 let kvm = Kvm::new().unwrap(); in unregister_ioevent() localVariable
1923 let vm = Vm::new(&kvm, gm).unwrap(); in unregister_ioevent()
1949 let kvm = Kvm::new().unwrap(); in irqfd_resample() localVariable
1951 let vm = Vm::new(&kvm, gm).unwrap(); in irqfd_resample()
1965 let kvm = Kvm::new().unwrap(); in set_gsi_routing() localVariable
1967 let vm = Vm::new(&kvm, gm).unwrap(); in set_gsi_routing()
2007 let kvm = Kvm::new().unwrap(); in create_vcpu() localVariable
2009 let vm = Vm::new(&kvm, gm).unwrap(); in create_vcpu()
2010 Vcpu::new(0, &kvm, &vm).unwrap(); in create_vcpu()
2016 let kvm = Kvm::new().unwrap(); in debugregs() localVariable
2018 let vm = Vm::new(&kvm, gm).unwrap(); in debugregs()
2019 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in debugregs()
2030 let kvm = Kvm::new().unwrap(); in xcrs() localVariable
2031 if !kvm.check_extension(Cap::Xcrs) { in xcrs()
2036 let vm = Vm::new(&kvm, gm).unwrap(); in xcrs()
2037 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in xcrs()
2048 let kvm = Kvm::new().unwrap(); in get_msrs() localVariable
2050 let vm = Vm::new(&kvm, gm).unwrap(); in get_msrs()
2051 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in get_msrs()
2071 let kvm = Kvm::new().unwrap(); in get_hyperv_cpuid() localVariable
2073 let vm = Vm::new(&kvm, gm).unwrap(); in get_hyperv_cpuid()
2074 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in get_hyperv_cpuid()
2088 let kvm = Kvm::new().unwrap(); in enable_feature() localVariable
2090 let vm = Vm::new(&kvm, gm).unwrap(); in enable_feature()
2092 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in enable_feature()
2101 let kvm = Kvm::new().unwrap(); in mp_state() localVariable
2103 let vm = Vm::new(&kvm, gm).unwrap(); in mp_state()
2105 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in mp_state()
2112 let kvm = Kvm::new().unwrap(); in set_signal_mask() localVariable
2114 let vm = Vm::new(&kvm, gm).unwrap(); in set_signal_mask()
2115 let vcpu = Vcpu::new(0, &kvm, &vm).unwrap(); in set_signal_mask()
2121 let kvm = Kvm::new().unwrap(); in vcpu_mmap_size() localVariable
2122 let mmap_size = kvm.get_vcpu_mmap_size().unwrap(); in vcpu_mmap_size()
2131 let kvm = Kvm::new().unwrap(); in set_identity_map_addr() localVariable
2133 let vm = Vm::new(&kvm, gm).unwrap(); in set_identity_map_addr()