/external/crosvm/kvm/src/ |
D | lib.rs | 112 kvm: File, field 126 kvm: unsafe { File::from_raw_fd(ret) }, in new() 231 self.kvm.as_raw_fd() in as_raw_fd() 301 pub fn new(kvm: &Kvm, guest_mem: GuestMemory) -> Result<Vm> { in new() 304 let ret = unsafe { ioctl(kvm, KVM_CREATE_VM()) }; in new() 1125 pub fn new(id: c_ulong, kvm: &Kvm, vm: &Vm) -> Result<Vcpu> { in new() 1126 let run_mmap_size = kvm.get_vcpu_mmap_size()?; in new() 1766 let kvm = Kvm::new().unwrap(); in create_vm() localVariable 1768 Vm::new(&kvm, gm).unwrap(); in create_vm() 1773 let kvm = Kvm::new().unwrap(); in check_extension() localVariable [all …]
|
/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 | cpuid.rs | 8 use kvm; 53 fn filter_cpuid(cpu_id: u64, cpu_count: u64, kvm_cpuid: &mut kvm::CpuId) -> Result<()> { in filter_cpuid() 113 pub fn setup_cpuid(kvm: &kvm::Kvm, vcpu: &kvm::Vcpu, cpu_id: u64, nrcpus: u64) -> Result<()> { in setup_cpuid() 114 let mut kvm_cpuid = kvm in setup_cpuid() 130 let mut cpuid = kvm::CpuId::new(2); in feature_and_vendor_name()
|
D | lib.rs | 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() [all …]
|
D | regs.rs | 10 use kvm; 132 pub fn setup_msrs(vcpu: &kvm::Vcpu) -> Result<()> { in setup_msrs() 168 pub fn setup_fpu(vcpu: &kvm::Vcpu) -> Result<()> { in setup_fpu() 188 pub fn setup_regs(vcpu: &kvm::Vcpu, boot_ip: u64, boot_sp: u64, boot_si: u64) -> Result<()> { in setup_regs() 304 pub fn setup_sregs(mem: &GuestMemory, vcpu: &kvm::Vcpu) -> Result<()> { in setup_sregs()
|
D | interrupts.rs | 12 use kvm; 72 pub fn set_lint(vcpu: &kvm::Vcpu) -> Result<()> { in set_lint()
|
/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 | 7 use kvm::*; 30 let kvm = Kvm::new().expect("new kvm failed"); in test_run() localVariable 31 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run() 32 let vcpu = Vcpu::new(0, &kvm, &vm).expect("new vcpu failed"); in test_run()
|
D | read_only_memory.rs | 7 use kvm::*; 32 let kvm = Kvm::new().expect("new kvm failed"); in test_run() localVariable 33 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run() 34 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/kvm/ |
D | Android.bp | 6 crate_name: "kvm", 27 crate_name: "kvm", 43 crate_name: "kvm",
|
/external/crosvm/vm_control/ |
D | Cargo.toml | 13 kvm = { path = "../kvm" }
|
/external/crosvm/crosvm_plugin/ |
D | Cargo.toml | 11 kvm = { path = "../kvm" }
|
/external/autotest/ |
D | .gitignore | 37 client/tests/kvm/images 38 client/tests/kvm/env 40 client/tests/kvm/*.cfg
|
/external/crosvm/arch/ |
D | Cargo.toml | 12 kvm = { path = "../kvm" }
|
/external/crosvm/aarch64/ |
D | Cargo.toml | 13 kvm = { path = "../kvm" }
|
/external/crosvm/x86_64/ |
D | Cargo.toml | 17 kvm = { path = "../kvm" }
|
/external/crosvm/devices/ |
D | Cargo.toml | 23 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/devices/src/ |
D | ioapic.rs | 88 redirect_table: [RedirectionTableEntry; kvm::NUM_IOAPIC_PINS], 155 let entries = [entry; kvm::NUM_IOAPIC_PINS]; in new() 173 for i in 0..kvm::NUM_IOAPIC_PINS { in end_of_interrupt() 250 if index >= kvm::NUM_IOAPIC_PINS { in ioapic_write() 297 if index < kvm::NUM_IOAPIC_PINS { in ioapic_read() 317 let irq = kvm::NUM_IOAPIC_PINS - 1; in set_up() 446 ioapic.service_irq(kvm::NUM_IOAPIC_PINS, false); in service_invalid_irq()
|
/external/crosvm/aarch64/src/ |
D | lib.rs | 25 use kvm::*; 212 let kvm = Kvm::new().map_err(Error::CreateKvm)?; in build_vm() localVariable 213 let mut vm = Vm::new(&kvm, mem.clone()).map_err(Error::CreateVm)?; in build_vm() 218 let vcpu = Vcpu::new(cpu_id as libc::c_ulong, &kvm, &vm).map_err(Error::CreateVcpu)?; in build_vm() 221 &kvm, in build_vm() 303 kvm, in build_vm()
|
/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(
|