/external/crosvm/kvm/src/ |
D | lib.rs | 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 [all …]
|
/external/crosvm/hypervisor/src/kvm/ |
D | mod.rs | 93 kvm: SafeDescriptor, field 96 type KvmCap = kvm::Cap; 108 kvm: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new_with_path() 131 self.kvm.as_raw_descriptor() in as_raw_descriptor() 138 kvm: self.kvm.try_clone()?, in try_clone() 156 kvm: Kvm, field 166 pub fn new(kvm: &Kvm, guest_mem: GuestMemory) -> Result<KvmVm> { in new() 169 let ret = unsafe { ioctl(kvm, KVM_CREATE_VM()) }; in new() 191 kvm: kvm.try_clone()?, in new() 200 let run_mmap_size = self.kvm.get_vcpu_mmap_size()?; in create_vcpu() [all …]
|
D | x86_64.rs | 25 type KvmCpuId = kvm::CpuId; 301 &self.kvm in get_hypervisor() 673 let mut kvm = KvmCpuId::new(cpuid.cpu_id_entries.len()); in from() localVariable 674 let entries = kvm.mut_entries_slice(); in from() 687 kvm in from() 1156 let mut kvm = kvm_xcrs { in to_kvm_xcrs() localVariable 1161 kvm.xcrs[i].xcr = xcr.id as u32; in to_kvm_xcrs() 1162 kvm.xcrs[i].value = xcr.value; in to_kvm_xcrs() 1164 kvm in to_kvm_xcrs() 1218 let kvm = Kvm::new().unwrap(); in get_msr_index_list() localVariable [all …]
|
D | aarch64.rs | 80 &self.kvm in get_hypervisor() 274 let kvm = Kvm::new().unwrap(); in set_gsi_routing() localVariable 276 let vm = KvmVm::new(&kvm, gm).unwrap(); in set_gsi_routing()
|
/external/strace/tests/ |
D | ioctl_kvm_run_common.c | 296 int kvm = open(dev, O_RDWR); in main() local 297 if (kvm < 0) in main() 301 int ret = KVM_IOCTL(kvm, KVM_GET_API_VERSION, 0); in main() 305 kvm, KVM_API_VERSION); in main() 307 kvm, dev, ret); in main() 309 ret = KVM_IOCTL(kvm, KVM_CHECK_EXTENSION, in main() 312 kvm, dev, ret); in main() 314 int vm_fd = KVM_IOCTL(kvm, KVM_CREATE_VM, 0); in main() 316 kvm, dev, vm_fd, vm_dev); in main() 356 ret = KVM_IOCTL(kvm, KVM_GET_VCPU_MMAP_SIZE, NULL); in main() [all …]
|
/external/strace/tests-m32/ |
D | ioctl_kvm_run_common.c | 296 int kvm = open(dev, O_RDWR); in main() local 297 if (kvm < 0) in main() 301 int ret = KVM_IOCTL(kvm, KVM_GET_API_VERSION, 0); in main() 305 kvm, KVM_API_VERSION); in main() 307 kvm, dev, ret); in main() 309 ret = KVM_IOCTL(kvm, KVM_CHECK_EXTENSION, in main() 312 kvm, dev, ret); in main() 314 int vm_fd = KVM_IOCTL(kvm, KVM_CREATE_VM, 0); in main() 316 kvm, dev, vm_fd, vm_dev); in main() 356 ret = KVM_IOCTL(kvm, KVM_GET_VCPU_MMAP_SIZE, NULL); in main() [all …]
|
/external/strace/tests-mx32/ |
D | ioctl_kvm_run_common.c | 296 int kvm = open(dev, O_RDWR); in main() local 297 if (kvm < 0) in main() 301 int ret = KVM_IOCTL(kvm, KVM_GET_API_VERSION, 0); in main() 305 kvm, KVM_API_VERSION); in main() 307 kvm, dev, ret); in main() 309 ret = KVM_IOCTL(kvm, KVM_CHECK_EXTENSION, in main() 312 kvm, dev, ret); in main() 314 int vm_fd = KVM_IOCTL(kvm, KVM_CREATE_VM, 0); in main() 316 kvm, dev, vm_fd, vm_dev); in main() 356 ret = KVM_IOCTL(kvm, KVM_GET_VCPU_MMAP_SIZE, NULL); in main() [all …]
|
/external/crosvm/x86_64/src/ |
D | test_integration.rs | 39 use hypervisor::kvm::*; in simple_kvm_kernel_irqchip_test() 42 let kvm = Kvm::new().expect("failed to create kvm"); in simple_kvm_kernel_irqchip_test() localVariable 43 let vm = KvmVm::new(&kvm, guest_mem).expect("failed to create kvm vm"); in simple_kvm_kernel_irqchip_test() 44 (kvm, vm) in simple_kvm_kernel_irqchip_test() 55 use hypervisor::kvm::*; in simple_kvm_split_irqchip_test() 58 let kvm = Kvm::new().expect("failed to create kvm"); in simple_kvm_split_irqchip_test() localVariable 59 let vm = KvmVm::new(&kvm, guest_mem).expect("failed to create kvm vm"); in simple_kvm_split_irqchip_test() 60 (kvm, vm) in simple_kvm_split_irqchip_test()
|
D | cpuid.rs | 197 let kvm = hypervisor::kvm::Kvm::new().unwrap(); in feature_and_vendor_name() localVariable 198 let vm = hypervisor::kvm::KvmVm::new(&kvm, guest_mem).unwrap(); in feature_and_vendor_name()
|
/external/crosvm/kvm/tests/ |
D | real_run_adder.rs | 7 use kvm::*; 29 let kvm = Kvm::new().expect("new kvm failed"); in test_run() localVariable 30 let vm = Vm::new(&kvm, mem).expect("new vm failed"); in test_run() 31 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
|
D | dirty_log.rs | 8 use kvm::*; 31 let kvm = Kvm::new().expect("new kvm failed"); in test_run() localVariable 32 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run() 33 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
|
D | read_only_memory.rs | 8 use kvm::*; 33 let kvm = Kvm::new().expect("new kvm failed"); in test_run() localVariable 34 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run() 35 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
|
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | mmio_warning_test.c | 55 int i, kvm, kvmvm, kvmcpu; in test() local 60 kvm = open("/dev/kvm", O_RDWR); in test() 61 TEST_ASSERT(kvm != -1, "failed to open /dev/kvm"); in test() 62 kvmvm = ioctl(kvm, KVM_CREATE_VM, 0); in test()
|
/external/crosvm/devices/src/irqchip/kvm/ |
D | mod.rs | 7 use hypervisor::kvm::KvmVcpu; 184 use hypervisor::kvm::{Kvm, KvmVm}; 197 let kvm = Kvm::new().expect("failed to instantiate Kvm"); in create_kvm_kernel_irqchip() localVariable 199 let vm = KvmVm::new(&kvm, mem).expect("failed to instantiate vm"); in create_kvm_kernel_irqchip() 211 let kvm = Kvm::new().expect("failed to instantiate Kvm"); in mp_state() localVariable 213 let vm = KvmVm::new(&kvm, mem).expect("failed to instantiate vm"); in mp_state()
|
/external/crosvm/devices/src/irqchip/ |
D | mod.rs | 12 mod kvm; module 13 pub use self::kvm::KvmKernelIrqChip; 16 pub use self::kvm::AARCH64_GIC_NR_IRQS; 19 pub use self::kvm::KvmSplitIrqChip;
|
/external/crosvm/crosvm_plugin/ |
D | Cargo.toml | 14 kvm = { path = "../kvm" }
|
/external/autotest/ |
D | .gitignore | 37 client/tests/kvm/images 38 client/tests/kvm/env 40 client/tests/kvm/*.cfg
|
/external/crosvm/ci/crosvm_test_vm/runtime/ |
D | start_vm.amd64 | 15 if [ -e /dev/kvm ]; then 16 qemu_args+=(-enable-kvm -cpu host)
|
/external/crosvm/hypervisor/ |
D | Cargo.toml | 12 kvm = { path = "../kvm" }
|
/external/crosvm/aarch64/ |
D | Cargo.toml | 13 kvm = { path = "../kvm" }
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
D | kvm-recheck.sh | 32 kvm-recheck-${TORTURE_SUITE}.sh $i 71 EDITOR=echo kvm-find-errors.sh "${@: -1}" > /dev/null 2>&1
|
/external/elfutils/tests/ |
D | run-unstrip-M.sh | 38 7f31ea3f9000-7f31ea3fc000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu 39 7f31ea3fc000-7f31ea3ff000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu
|
/external/crosvm/kvm/ |
D | Android.bp | 16 crate_name: "kvm", 47 crate_name: "kvm", 111 crate_name: "kvm",
|
/external/crosvm/ |
D | Cargo.toml | 50 plugin = ["protos/plugin", "crosvm_plugin", "kvm", "kvm_sys", "protobuf"] 79 kvm = { path = "kvm", optional = true }
|
/external/autotest/server/site_tests/factory_InstallVM/ |
D | factory_InstallVM.py | 136 kvm = self.client.run(self._get_kvm_command([ 150 kvm = self.client.run(
|