Home
last modified time | relevance | path

Searched refs:vm (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c17 static uint64_t page_align(struct kvm_vm *vm, uint64_t v) in page_align() argument
19 return (v + vm->page_size) & ~(vm->page_size - 1); in page_align()
22 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index() argument
24 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - 3) + vm->page_shift; in pgd_index()
25 uint64_t mask = (1UL << (vm->va_bits - shift)) - 1; in pgd_index()
30 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index() argument
32 unsigned int shift = 2 * (vm->page_shift - 3) + vm->page_shift; in pud_index()
33 uint64_t mask = (1UL << (vm->page_shift - 3)) - 1; in pud_index()
35 TEST_ASSERT(vm->pgtable_levels == 4, in pud_index()
36 "Mode %d does not have 4 page table levels", vm->mode); in pud_index()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c77 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap) in vm_enable_cap() argument
81 ret = ioctl(vm->fd, KVM_ENABLE_CAP, cap); in vm_enable_cap()
88 static void vm_open(struct kvm_vm *vm, int perm) in vm_open() argument
90 vm->kvm_fd = open(KVM_DEV_PATH, perm); in vm_open()
91 if (vm->kvm_fd < 0) in vm_open()
94 vm->fd = ioctl(vm->kvm_fd, KVM_CREATE_VM, NULL); in vm_open()
95 TEST_ASSERT(vm->fd >= 0, "KVM_CREATE_VM ioctl failed, " in vm_open()
96 "rc: %i errno: %i", vm->fd, errno); in vm_open()
127 struct kvm_vm *vm; in vm_create() local
130 vm = calloc(1, sizeof(*vm)); in vm_create()
[all …]
Ducall.c15 static bool ucall_mmio_init(struct kvm_vm *vm, vm_paddr_t gpa) in ucall_mmio_init() argument
17 if (kvm_userspace_memory_region_find(vm, gpa, gpa + 1)) in ucall_mmio_init()
20 virt_pg_map(vm, gpa, gpa, 0); in ucall_mmio_init()
23 sync_global_to_guest(vm, ucall_exit_mmio_addr); in ucall_mmio_init()
28 void ucall_init(struct kvm_vm *vm, ucall_type_t type, void *arg) in ucall_init() argument
31 sync_global_to_guest(vm, ucall_type); in ucall_init()
42 ret = ucall_mmio_init(vm, gpa); in ucall_init()
58 start = 1ul << (vm->va_bits * 2 / 3); in ucall_init()
59 end = 1ul << vm->va_bits; in ucall_init()
60 step = 1ul << (vm->va_bits / 6); in ucall_init()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/include/
Dkvm_util.h54 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap);
60 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log);
62 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva,
65 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename,
68 void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
69 void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid,
72 void vm_create_irqchip(struct kvm_vm *vm);
74 void vm_userspace_mem_region_add(struct kvm_vm *vm,
79 void vcpu_ioctl(struct kvm_vm *vm, uint32_t vcpuid, unsigned long ioctl,
81 void vm_ioctl(struct kvm_vm *vm, unsigned long ioctl, void *arg);
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c230 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t pgd_memslot) in virt_pgd_alloc() argument
234 TEST_ASSERT(vm->mode == VM_MODE_P52V48_4K, "Attempt to use " in virt_pgd_alloc()
235 "unknown or unsupported guest mode, mode: 0x%x", vm->mode); in virt_pgd_alloc()
238 if (!vm->pgd_created) { in virt_pgd_alloc()
239 vm_paddr_t paddr = vm_phy_page_alloc(vm, in virt_pgd_alloc()
241 vm->pgd = paddr; in virt_pgd_alloc()
242 vm->pgd_created = true; in virt_pgd_alloc()
261 void virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_pg_map() argument
267 TEST_ASSERT(vm->mode == VM_MODE_P52V48_4K, "Attempt to use " in virt_pg_map()
268 "unknown or unsupported guest mode, mode: 0x%x", vm->mode); in virt_pg_map()
[all …]
Dvmx.c30 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() argument
32 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
33 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx()
36 vmx->vmxon = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
37 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
38 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
41 vmx->vmcs = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
42 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
43 vmx->vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
46 vmx->msr = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dplatform_info_test.c38 static void set_msr_platform_info_enabled(struct kvm_vm *vm, bool enable) in set_msr_platform_info_enabled() argument
45 vm_enable_cap(vm, &cap); in set_msr_platform_info_enabled()
48 static void test_msr_platform_info_enabled(struct kvm_vm *vm) in test_msr_platform_info_enabled() argument
50 struct kvm_run *run = vcpu_state(vm, VCPU_ID); in test_msr_platform_info_enabled()
53 set_msr_platform_info_enabled(vm, true); in test_msr_platform_info_enabled()
54 vcpu_run(vm, VCPU_ID); in test_msr_platform_info_enabled()
59 get_ucall(vm, VCPU_ID, &uc); in test_msr_platform_info_enabled()
69 static void test_msr_platform_info_disabled(struct kvm_vm *vm) in test_msr_platform_info_disabled() argument
71 struct kvm_run *run = vcpu_state(vm, VCPU_ID); in test_msr_platform_info_disabled()
73 set_msr_platform_info_enabled(vm, false); in test_msr_platform_info_disabled()
[all …]
Devmcs_test.c80 struct kvm_vm *vm; in main() local
94 vm = vm_create_default(VCPU_ID, 0, guest_code); in main()
96 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main()
104 vcpu_ioctl(vm, VCPU_ID, KVM_ENABLE_CAP, &enable_evmcs_cap); in main()
106 run = vcpu_state(vm, VCPU_ID); in main()
108 vcpu_regs_get(vm, VCPU_ID, &regs1); in main()
110 vmx_pages = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
111 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main()
114 _vcpu_run(vm, VCPU_ID); in main()
121 vcpu_regs_get(vm, VCPU_ID, &regs1); in main()
[all …]
Dsync_regs_test.c76 struct kvm_vm *vm; in main() local
97 vm = vm_create_default(VCPU_ID, 0, guest_code); in main()
99 run = vcpu_state(vm, VCPU_ID); in main()
103 rv = _vcpu_run(vm, VCPU_ID); in main()
107 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main()
110 rv = _vcpu_run(vm, VCPU_ID); in main()
114 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main()
118 rv = _vcpu_run(vm, VCPU_ID); in main()
122 vcpu_state(vm, VCPU_ID)->kvm_dirty_regs = 0; in main()
125 rv = _vcpu_run(vm, VCPU_ID); in main()
[all …]
Dstate_test.c129 struct kvm_vm *vm; in main() local
138 vm = vm_create_default(VCPU_ID, 0, guest_code); in main()
139 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main()
140 run = vcpu_state(vm, VCPU_ID); in main()
142 vcpu_regs_get(vm, VCPU_ID, &regs1); in main()
145 vmx_pages = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
146 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main()
149 vcpu_args_set(vm, VCPU_ID, 1, 0); in main()
153 _vcpu_run(vm, VCPU_ID); in main()
160 vcpu_regs_get(vm, VCPU_ID, &regs1); in main()
[all …]
/external/autotest/client/site_tests/video_YouTubeMseEme/files/
Dvideo_YouTubeMseEme.js151 var vm = setupVideoAndMs(function() {
154 return_value &= vm.ms.sourceBuffers.length === 0;
155 vm.ms.addSourceBuffer(audio_format);
156 return_value &= vm.ms.sourceBuffers.length === 1;
157 vm.ms.addSourceBuffer(video_format);
158 return_value &= vm.ms.sourceBuffers.length === 2;
174 var vm = setupVideoAndMs(function() {
177 vm.ms.addSourceBuffer(formats[i]);
188 var vm = setupVideoAndMs(function() {
190 vm.ms.addSourceBuffer('^^^');
[all …]
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DPacketStream.java33 final VirtualMachineImpl vm; field in PacketStream
39 PacketStream(VirtualMachineImpl vm, int cmdSet, int cmd) { in PacketStream() argument
40 this.vm = vm; in PacketStream()
46 PacketStream(VirtualMachineImpl vm, Packet pkt) { in PacketStream() argument
47 this.vm = vm; in PacketStream()
59 vm.sendToTarget(pkt); in send()
69 vm.waitForTargetReply(pkt); in waitForReply()
146 writeID(vm.sizeofObjectRef, data); in writeObjectRef()
150 writeID(vm.sizeofClassRef, data); in writeClassRef()
154 writeID(vm.sizeofMethodRef, data); in writeMethodRef()
[all …]
DTargetVM.java40 private VirtualMachineImpl vm; field in TargetVM
53 TargetVM(VirtualMachineImpl vm, Connection connection) { in TargetVM() argument
54 this.vm = vm; in TargetVM()
56 this.readerThread = new Thread(vm.threadGroupForJDI(), in TargetVM()
68 vm.printTrace(direction + " Command. id=" + packet.id + in dumpPacket()
76 vm.printTrace(direction + " " + type + ". id=" + packet.id + in dumpPacket()
85 vm.printTrace(line.toString()); in dumpPacket()
103 vm.printTrace(line.toString()); in dumpPacket()
108 if ((vm.traceFlags & VirtualMachine.TRACE_SENDS) != 0) { in run()
109 vm.printTrace("Target VM interface thread running"); in run()
[all …]
DInternalEventHandler.java35 VirtualMachineImpl vm; field in InternalEventHandler
37 InternalEventHandler(VirtualMachineImpl vm, EventQueueImpl queue) in InternalEventHandler() argument
39 this.vm = vm; in InternalEventHandler()
41 Thread thread = new Thread(vm.threadGroupForJDI(), this, in InternalEventHandler()
48 if ((vm.traceFlags & VirtualMachine.TRACE_EVENTS) != 0) { in run()
49 vm.printTrace("Internal event handler running"); in run()
60 vm.removeReferenceType(cuEvent.classSignature()); in run()
62 if ((vm.traceFlags & VirtualMachine.TRACE_EVENTS) != 0) { in run()
63 vm.printTrace("Handled Unload Event for " + in run()
71 if ((vm.traceFlags & VirtualMachine.TRACE_EVENTS) != 0) { in run()
[all …]
DThreadReferenceImpl.java122 vm.state().addListener(this); in ThreadReferenceImpl()
135 synchronized (vm.state()) { in vmNotSuspended()
168 name = JDWP.ThreadReference.Name.process(vm, this) in name()
185 synchronized (vm.state()) { in sendResumingCommand()
194 JDWP.ThreadReference.Suspend.process(vm, this); in suspend()
213 synchronized (vm.state()) { in resume()
216 stream = JDWP.ThreadReference.Resume.enqueueCommand(vm, this); in resume()
219 JDWP.ThreadReference.Resume.waitForReply(vm, stream); in resume()
234 return JDWP.ThreadReference.SuspendCount.process(vm, this).suspendCount; in suspendCount()
243 List<ReferenceType> list = vm.classesByName("java.lang.Throwable"); in stop()
[all …]
DMirrorImpl.java34 protected VirtualMachineImpl vm; field in MirrorImpl
42 vm = (VirtualMachineImpl)aVm; in MirrorImpl()
46 return vm; in virtualMachine()
52 return vm.equals(other.virtualMachine()); in equals()
59 return vm.hashCode(); in hashCode()
67 if (!vm.equals(mirror.virtualMachine())) { in validateMirror()
77 if ((mirror != null) && !vm.equals(mirror.virtualMachine())) { in validateMirrorOrNull()
90 if (!vm.equals(mirror.vm)) { in validateMirrors()
103 if ((mirror != null) && !vm.equals(mirror.vm)) { in validateMirrorsOrNulls()
DVMState.java34 private final VirtualMachineImpl vm; field in VMState
79 VMState(VirtualMachineImpl vm) { in VMState() argument
80 this.vm = vm; in VMState()
106 processVMAction(new VMAction(vm, VMAction.VM_SUSPENDED)); in freeze()
132 if ((vm.traceFlags & VirtualMachine.TRACE_OBJREFS) != 0) { in thaw()
133 vm.printTrace("Clearing VM suspended cache"); in thaw()
137 processVMAction(new VMAction(vm, resumingThread, VMAction.VM_NOT_SUSPENDED)); in thaw()
202 process(vm).threads); in allThreads()
205 if ((vm.traceFlags & VirtualMachine.TRACE_OBJREFS) != 0) { in allThreads()
206 vm.printTrace("Caching all threads (count = " + in allThreads()
[all …]
DObjectReferenceImpl.java51 synchronized (vm.state()) { in disableCache()
57 synchronized (vm.state()) { in enableCache()
68 synchronized (vm.state()) { in getCache()
70 if (vm.state().isSuspended()) { in getCache()
112 synchronized (vm.state()) { in vmNotSuspended()
113 if (cache != null && (vm.traceFlags & VirtualMachine.TRACE_OBJREFS) != 0) { in vmNotSuspended()
114 vm.printTrace("Clearing temporary cache for " + description()); in vmNotSuspended()
153 JDWP.ObjectReference.ReferenceType.process(vm, this); in referenceType()
154 type = vm.referenceType(rtinfo.typeID, in referenceType()
212 process(vm, this, queryFields).values; in getValues()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c113 struct kvm_vm *vm = data; in vcpu_worker() local
119 run = vcpu_state(vm, VCPU_ID); in vcpu_worker()
121 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()
126 ret = _vcpu_run(vm, VCPU_ID); in vcpu_worker()
127 if (get_ucall(vm, VCPU_ID, &uc) == UCALL_SYNC) { in vcpu_worker()
214 struct kvm_vm *vm; in create_vm() local
217 vm = vm_create(mode, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); in create_vm()
218 kvm_vm_elf_load(vm, program_invocation_name, 0, 0); in create_vm()
220 vm_create_irqchip(vm); in create_vm()
222 vm_vcpu_add_default(vm, vcpuid, guest_code); in create_vm()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmFloatControlsTests.cpp393 ValueMap& vm = m_valueIdToFloatType; in TypeValues() local
394 vm[V_UNUSED] = deFloat32To16(0.0f); in TypeValues()
395 vm[V_MINUS_INF] = 0xfc00; in TypeValues()
396 vm[V_MINUS_ONE] = deFloat32To16(-1.0f); in TypeValues()
397 vm[V_MINUS_ZERO] = 0x8000; in TypeValues()
398 vm[V_ZERO] = 0x0000; in TypeValues()
399 vm[V_HALF] = deFloat32To16(0.5f); in TypeValues()
400 vm[V_ONE] = deFloat32To16(1.0f); in TypeValues()
401 vm[V_INF] = 0x7c00; in TypeValues()
402 vm[V_DENORM] = 0x03f0; // this value should be the same as the result of denormBase - epsilon in TypeValues()
[all …]
/external/libdrm/amdgpu/
Damdgpu_vm.c31 union drm_amdgpu_vm vm; in amdgpu_vm_reserve_vmid() local
33 vm.in.op = AMDGPU_VM_OP_RESERVE_VMID; in amdgpu_vm_reserve_vmid()
34 vm.in.flags = flags; in amdgpu_vm_reserve_vmid()
37 &vm, sizeof(vm)); in amdgpu_vm_reserve_vmid()
42 union drm_amdgpu_vm vm; in amdgpu_vm_unreserve_vmid() local
44 vm.in.op = AMDGPU_VM_OP_UNRESERVE_VMID; in amdgpu_vm_unreserve_vmid()
45 vm.in.flags = flags; in amdgpu_vm_unreserve_vmid()
48 &vm, sizeof(vm)); in amdgpu_vm_unreserve_vmid()
/external/vixl/src/aarch64/
Dassembler-aarch64.h565 void tbl(const VRegister& vd, const VRegister& vn, const VRegister& vm);
571 const VRegister& vm);
578 const VRegister& vm);
586 const VRegister& vm);
589 void tbx(const VRegister& vd, const VRegister& vn, const VRegister& vm);
595 const VRegister& vm);
602 const VRegister& vm);
610 const VRegister& vm);
2174 void fadd(const VRegister& vd, const VRegister& vn, const VRegister& vm);
2177 void fsub(const VRegister& vd, const VRegister& vn, const VRegister& vm);
[all …]
/external/v8/src/arm64/
Dassembler-arm64.h1247 void and_(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1253 void bic(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1256 void bif(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1259 void bit(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1262 void bsl(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1265 void pmul(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1327 void orn(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1330 void eor(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1336 void orr(const VRegister& vd, const VRegister& vn, const VRegister& vm);
1752 void add(const VRegister& vd, const VRegister& vn, const VRegister& vm);
[all …]
/external/javasqlite/src/main/java/SQLite/
DDatabase.java307 Vm vm = compile(sql); in get_table() local
308 set_last_error(vm.error_code); in get_table()
310 while (ret.nrows < ret.maxrows && vm.step(ret)) { in get_table()
311 set_last_error(vm.error_code); in get_table()
314 while (vm.step(ret)) { in get_table()
315 set_last_error(vm.error_code); in get_table()
318 vm.finalize(); in get_table()
360 Vm vm = compile(sql, args); in get_table() local
361 set_last_error(vm.error_code); in get_table()
363 while (ret.nrows < ret.maxrows && vm.step(ret)) { in get_table()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DExperiment.java36 private final VirtualMachine vm; field in Experiment
42 VirtualMachine vm) { in Experiment() argument
45 this.vm = checkNotNull(vm); in Experiment()
56 VirtualMachine vm() { in vm() method in Experiment
57 return vm; in vm()
64 && this.vm.equals(that.vm) in equals()
71 return Objects.hashCode(instrumentation, vm, userParameters); in hashCode()
78 .add("vm", vm.name) in toString()

12345678910>>...19