Home
last modified time | relevance | path

Searched refs:kvm (Results 1 – 25 of 72) sorted by relevance

123

/external/crosvm/kvm/src/
Dlib.rs112 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/
Dioctl_kvm_run_common.c296 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/
Dioctl_kvm_run_common.c296 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/
Dioctl_kvm_run_common.c296 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/
Dcpuid.rs8 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()
Dlib.rs59 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 …]
Dregs.rs10 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()
Dinterrupts.rs12 use kvm;
72 pub fn set_lint(vcpu: &kvm::Vcpu) -> Result<()> { in set_lint()
/external/crosvm/kvm/tests/
Dreal_run_adder.rs7 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()
Ddirty_log.rs7 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()
Dread_only_memory.rs7 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/
Dmmio_warning_test.c55 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/
DAndroid.bp6 crate_name: "kvm",
27 crate_name: "kvm",
43 crate_name: "kvm",
/external/crosvm/vm_control/
DCargo.toml13 kvm = { path = "../kvm" }
/external/crosvm/crosvm_plugin/
DCargo.toml11 kvm = { path = "../kvm" }
/external/autotest/
D.gitignore37 client/tests/kvm/images
38 client/tests/kvm/env
40 client/tests/kvm/*.cfg
/external/crosvm/arch/
DCargo.toml12 kvm = { path = "../kvm" }
/external/crosvm/aarch64/
DCargo.toml13 kvm = { path = "../kvm" }
/external/crosvm/x86_64/
DCargo.toml17 kvm = { path = "../kvm" }
/external/crosvm/devices/
DCargo.toml23 kvm = { path = "../kvm" }
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/
Dkvm-recheck.sh32 kvm-recheck-${TORTURE_SUITE}.sh $i
71 EDITOR=echo kvm-find-errors.sh "${@: -1}" > /dev/null 2>&1
/external/elfutils/tests/
Drun-unstrip-M.sh38 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/
Dioapic.rs88 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/
Dlib.rs25 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/
Dfactory_InstallVM.py136 kvm = self.client.run(self._get_kvm_command([
150 kvm = self.client.run(

123