Home
last modified time | relevance | path

Searched refs:arch_vm (Results 1 – 22 of 22) sorted by relevance

/hypervisor/arch/x86/guest/
A Dhyperv.c77 p->tsc_scale = vcpu->vm->arch_vm.hyperv.tsc_scale; in hyperv_setup_tsc_page()
78 p->tsc_offset = vcpu->vm->arch_vm.hyperv.tsc_offset; in hyperv_setup_tsc_page()
103 return hyperv_scale_tsc(vm->arch_vm.hyperv.tsc_scale) - vm->arch_vm.hyperv.tsc_offset; in hyperv_get_ReferenceTime()
156 vcpu->vm->arch_vm.hyperv.guest_os_id.val64 = wval; in hyperv_wrmsr()
197 *rval = vcpu->vm->arch_vm.hyperv.guest_os_id.val64; in hyperv_rdmsr()
209 *rval = vcpu->vm->arch_vm.hyperv.ref_tsc_page.val64; in hyperv_rdmsr()
250 vm->arch_vm.hyperv.tsc_scale = tsc_scale; in hyperv_init_time()
251 vm->arch_vm.hyperv.tsc_offset = tsc_offset; in hyperv_init_time()
317 vm->arch_vm.hyperv.hypercall_page.enabled = 0U; in hyperv_page_destory()
319 vm->arch_vm.hyperv.guest_os_id.val64 = 0UL; in hyperv_page_destory()
[all …]
A Dtrusty.c65 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, gpa_orig, size); in create_secure_world_ept()
67 vm->arch_vm.sworld_eptp = pgtable_create_trusty_root(&vm->arch_vm.ept_pgtable, in create_secure_world_ept()
68 vm->arch_vm.nworld_eptp, EPT_RWX, EPT_EXE); in create_secure_world_ept()
85 if (vm->arch_vm.sworld_eptp != NULL) { in destroy_secure_world()
93 ept_del_mr(vm, vm->arch_vm.sworld_eptp, gpa_user_vm, size); in destroy_secure_world()
94 vm->arch_vm.sworld_eptp = NULL; in destroy_secure_world()
97 ept_add_mr(vm, vm->arch_vm.nworld_eptp, hpa, gpa_user_vm, size, EPT_RWX | EPT_WB); in destroy_secure_world()
242 hva2hpa(vcpu->vm->arch_vm.nworld_eptp) | in switch_world()
250 hva2hpa(vcpu->vm->arch_vm.sworld_eptp) | in switch_world()
371 || (vm->arch_vm.sworld_eptp != NULL)) { in initialize_trusty()
[all …]
A Dvm.c348 ept_add_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, in prepare_prelaunched_vm_memmap()
697 init_ept_pgtable(&vm->arch_vm.ept_pgtable, vm->vm_id); in create_vm()
698 vm->arch_vm.nworld_eptp = pgtable_create_root(&vm->arch_vm.ept_pgtable); in create_vm()
718 ept_add_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, in create_vm()
754 spinlock_init(&vm->arch_vm.iwkey_backup_lock); in create_vm()
756 vm->arch_vm.vlapic_mode = VM_VLAPIC_XAPIC; in create_vm()
856 (void)memset(vm->arch_vm.nworld_eptp, 0U, PAGE_SIZE); in create_vm()
1019 vm->arch_vm.vlapic_mode = VM_VLAPIC_XAPIC; in reset_vm()
1029 vm->arch_vm.iwkey_backup_status = 0UL; in reset_vm()
1236 vm->arch_vm.vlapic_mode = vlapic_mode; in update_vm_vlapic_state()
[all …]
A Dept.c238 if (vm->arch_vm.nworld_eptp != NULL) { in destroy_ept()
239 (void)memset(vm->arch_vm.nworld_eptp, 0U, PAGE_SIZE); in destroy_ept()
255 pgentry = pgtable_lookup_entry((uint64_t *)eptp, gpa, &pg_size, &vm->arch_vm.ept_pgtable); in local_gpa2hpa()
327 pgtable_add_map(pml4_page, hpa, gpa, size, prot, &vm->arch_vm.ept_pgtable); in ept_add_mr()
344 …pgtable_modify_or_del_map(pml4_page, gpa, size, local_prot, prot_clr, &(vm->arch_vm.ept_pgtable), … in ept_modify_mr()
359 pgtable_modify_or_del_map(pml4_page, gpa, size, 0UL, 0UL, &(vm->arch_vm.ept_pgtable), MR_DEL); in ept_del_mr()
418 eptp = vm->arch_vm.sworld_eptp; in get_eptp()
420 eptp = vm->arch_vm.nworld_eptp; in get_eptp()
431 const struct pgtable *table = &vm->arch_vm.ept_pgtable; in walk_ept_table()
A Dvmx_io.c118 ept_modify_mr(vcpu->vm, (uint64_t *)vcpu->vm->arch_vm.nworld_eptp, in ept_violation_vmexit_handler()
121 ept_modify_mr(vcpu->vm, (uint64_t *)vcpu->vm->arch_vm.sworld_eptp, in ept_violation_vmexit_handler()
205 b = (uint32_t *)vm->arch_vm.io_bitmap; in allow_guest_pio_access()
219 b = (uint32_t *)vm->arch_vm.io_bitmap; in deny_guest_pio_access()
A Dvmsr.c804 v = vcpu->vm->arch_vm.iwkey_backup_status; in rdmsr_vmexit_handler()
1273 vcpu->vm->arch_vm.iwkey_backup_status = 0UL; in wrmsr_vmexit_handler()
1274 spinlock_obtain(&vcpu->vm->arch_vm.iwkey_backup_lock); in wrmsr_vmexit_handler()
1275 vcpu->vm->arch_vm.iwkey_backup = vcpu->arch.IWKey; in wrmsr_vmexit_handler()
1276 spinlock_release(&vcpu->vm->arch_vm.iwkey_backup_lock); in wrmsr_vmexit_handler()
1281 vcpu->vm->arch_vm.iwkey_backup_status = 0x9UL; in wrmsr_vmexit_handler()
1293 if ((v == 0x1UL) && (vcpu->vm->arch_vm.iwkey_backup_status == 0x9UL)) { in wrmsr_vmexit_handler()
1294 spinlock_obtain(&vcpu->vm->arch_vm.iwkey_backup_lock); in wrmsr_vmexit_handler()
1295 vcpu->arch.IWKey = vcpu->vm->arch_vm.iwkey_backup; in wrmsr_vmexit_handler()
1296 spinlock_release(&vcpu->vm->arch_vm.iwkey_backup_lock); in wrmsr_vmexit_handler()
A Dvmcs.c409 value64 = hva2hpa(vm->arch_vm.nworld_eptp) | (3UL << 3U) | 6UL; in init_exec_ctrl()
447 value64 = hva2hpa(vm->arch_vm.io_bitmap); in init_exec_ctrl()
450 value64 = hva2hpa((void *)&(vm->arch_vm.io_bitmap[PAGE_SIZE])); in init_exec_ctrl()
A Dvirq.c386 invept(vcpu->vm->arch_vm.nworld_eptp); in acrn_handle_pending_request()
388 invept(vcpu->vm->arch_vm.sworld_eptp); in acrn_handle_pending_request()
A Doptee.c48 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, hv_hpa, get_hv_image_size()); in prepare_tee_vm_memmap()
A Dvmtrr.c163 ept_modify_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, start, size, attr, EPT_MT_MASK); in update_ept()
A Dvlapic.c2190 (uint64_t *)vcpu->vm->arch_vm.nworld_eptp; in vlapic_create()
/hypervisor/dm/
A Dvioapic.c49 return (struct acrn_vioapics *)&(vm->arch_vm.vioapics); in vm_ioapics()
135 vioapic = (struct acrn_single_vioapic *)&(vm->arch_vm.vioapics.vioapic_array[vioapic_index]); in vgsi_to_vioapic_and_vpin()
491 for (vioapic_index = 0U; vioapic_index < vm->arch_vm.vioapics.ioapic_num; vioapic_index++) { in vioapic_broadcast_eoi()
533 vm->arch_vm.vioapics.ioapic_num = get_platform_ioapic_info(&vioapic_info); in vioapic_init()
535 vm->arch_vm.vioapics.ioapic_num = 1U; in vioapic_init()
539 for (vioapic_index = 0U; vioapic_index < vm->arch_vm.vioapics.ioapic_num; vioapic_index++) { in vioapic_init()
540 vioapic = &vm->arch_vm.vioapics.vioapic_array[vioapic_index]; in vioapic_init()
549 …ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, (uint64_t)vioapic->chipinfo.addr, VIOAPIC_SIZE… in vioapic_init()
557 vm->arch_vm.vioapics.nr_gsi = vioapic->chipinfo.gsi_base + vioapic->chipinfo.nr_pins; in vioapic_init()
564 return vm->arch_vm.vioapics.nr_gsi; in get_vm_gsicount()
A Dmmio_dev.c26 ept_add_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, res->host_pa, in assign_mmio_dev()
52 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, gpa, res->size); in deassign_mmio_dev()
A Dvgpio.c147 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, gpa_start, gpio_pcr_sz); in register_vgpio_handler()
A Dvpic.c44 return container_of(container_of(vpic, struct vm_arch, vpic), struct acrn_vm, arch_vm); in vpic2vm()
49 return (struct acrn_vpic *)&(vm->arch_vm.vpic); in vm_pic()
/hypervisor/dm/vpci/
A Divshmem.c349 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_gpa, vbar->size); in ivshmem_vbar_unmap()
391 ept_add_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_hpa, in ivshmem_vbar_map()
396 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_gpa, round_page_up(vbar->size)); in ivshmem_vbar_map()
400 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_gpa, vbar->size); in ivshmem_vbar_map()
A Dvmcs9900.c69 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_gpa, vbar->size); in map_vmcs9900_vbar()
74 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, vbar->base_gpa, vbar->size); in map_vmcs9900_vbar()
A Dpci_pt.c217 ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, addr_lo, addr_hi - addr_lo); in vdev_pt_map_msix()
233 ept_del_mr(vm, (uint64_t *)(vm->arch_vm.nworld_eptp), in vdev_pt_unmap_mem_vbar()
254 ept_add_mr(vm, (uint64_t *)(vm->arch_vm.nworld_eptp), in vdev_pt_map_mem_vbar()
584 ept_add_mr(vpci2vm(vdev->vpci), vpci2vm(vdev->vpci)->arch_vm.nworld_eptp, in passthru_gpu_opregion()
A Dvsriov.c131 ept_add_mr(vm, (uint64_t *)(vm->arch_vm.nworld_eptp), vf_vbar->base_hpa, in create_vf()
A Dvpci.c230 vm->iommu = create_iommu_domain(vm->vm_id, hva2hpa(vm->arch_vm.nworld_eptp), 48U); in init_vpci()
/hypervisor/include/arch/x86/asm/guest/
A Dvm.h139 struct vm_arch arch_vm; /* Reference to this VM's arch information */ member
/hypervisor/common/
A Dhypercall.c672 pml4_page = (uint64_t *)target_vm->arch_vm.nworld_eptp; in set_vm_memory_region()
773 ept_modify_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, in write_protect_page()

Completed in 704 milliseconds