/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | README.LinuxPrimitives | 11 linux/arch/arm64/lib/bitops.S xen/arch/arm/arm64/lib/bitops.S 34 linux/arch/arm64/lib/memchr.S xen/arch/arm/arm64/lib/memchr.S 35 linux/arch/arm64/lib/memcmp.S xen/arch/arm/arm64/lib/memcmp.S 36 linux/arch/arm64/lib/memcpy.S xen/arch/arm/arm64/lib/memcpy.S 37 linux/arch/arm64/lib/memmove.S xen/arch/arm/arm64/lib/memmove.S 38 linux/arch/arm64/lib/memset.S xen/arch/arm/arm64/lib/memset.S 41 diff -u linux/arch/arm64/lib/$i xen/arch/arm/arm64/lib/$i 56 diff -u linux/arch/arm64/lib/$i xen/arch/arm/arm64/lib/$i 83 diff -u ../linux/arch/arm/lib/$i xen/arch/arm/arm32/lib/$i; 115 diff -u linux/arch/arm/lib/$i xen/arch/arm/arm32/lib/$i [all …]
|
A D | domain.c | 124 p->arch.jmcr = READ_CP32(JMCR); in ctxt_switch_from() 524 if ( v->arch.stack == NULL ) in vcpu_initialise() 527 v->arch.cpu_info = (struct cpu_info *)(v->arch.stack in vcpu_initialise() 531 memset(&v->arch.saved_context, 0, sizeof(v->arch.saved_context)); in vcpu_initialise() 532 v->arch.saved_context.sp = (register_t)v->arch.cpu_info; in vcpu_initialise() 571 v->arch.hcr_el2 |= HCR_RW; in vcpu_switch_to_aarch64_mode() 799 v->arch.sctlr = ctxt->sctlr; in arch_set_info_guest() 800 v->arch.ttbr0 = ctxt->ttbr0; in arch_set_info_guest() 801 v->arch.ttbr1 = ctxt->ttbr1; in arch_set_info_guest() 802 v->arch.ttbcr = ctxt->ttbcr; in arch_set_info_guest() [all …]
|
A D | vtimer.c | 66 d->arch.phys_timer_base.offset = NOW(); in domain_vtimer_init() 118 t = &v->arch.virt_timer; in vcpu_vtimer_init() 126 v->arch.vtimer_initialized = 1; in vcpu_vtimer_init() 133 if ( !v->arch.vtimer_initialized ) in vcpu_timer_destroy() 136 kill_timer(&v->arch.virt_timer.timer); in vcpu_timer_destroy() 137 kill_timer(&v->arch.phys_timer.timer); in vcpu_timer_destroy() 150 set_timer(&v->arch.virt_timer.timer, ticks_to_ns(v->arch.virt_timer.cval + in virt_timer_save() 160 stop_timer(&v->arch.virt_timer.timer); in virt_timer_restore() 179 *r = v->arch.phys_timer.ctl; in vtimer_cntp_ctl() 186 v->arch.phys_timer.ctl = ctl; in vtimer_cntp_ctl() [all …]
|
A D | vgic.c | 98 switch ( d->arch.vgic.version ) in domain_vgic_register() 124 d->arch.vgic.ctlr = 0; in domain_vgic_init() 130 d->arch.vgic.nr_spis = nr_spis; in domain_vgic_init() 134 d->arch.vgic.shared_irqs = in domain_vgic_init() 139 d->arch.vgic.pending_irqs = in domain_vgic_init() 155 d->arch.vgic.allocated_irqs = in domain_vgic_init() 169 d->arch.vgic.handler = ops; in register_vgic_ops() 190 if ( d->arch.vgic.handler ) in domain_vgic_free() 192 xfree(d->arch.vgic.shared_irqs); in domain_vgic_free() 193 xfree(d->arch.vgic.pending_irqs); in domain_vgic_free() [all …]
|
A D | vuart.c | 60 if ( !d->arch.vuart.info ) in domain_vuart_init() 63 spin_lock_init(&d->arch.vuart.lock); in domain_vuart_init() 64 d->arch.vuart.idx = 0; in domain_vuart_init() 67 if ( !d->arch.vuart.buf ) in domain_vuart_init() 71 d->arch.vuart.info->base_addr, in domain_vuart_init() 72 d->arch.vuart.info->size, in domain_vuart_init() 83 xfree(d->arch.vuart.buf); in domain_vuart_free() 89 struct vuart *uart = &d->arch.vuart; in vuart_print_char() 119 if ( offset == d->arch.vuart.info->status_off ) in vuart_mmio_read() 121 *r = d->arch.vuart.info->status; in vuart_mmio_read() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/pv/ |
A D | domain.c | 47 v->arch.guest_table_user = v->arch.guest_table; in setup_compat_l4() 70 d->arch.has_32bit_shinfo = 1; in switch_compat() 71 d->arch.is_32bit_pv = 1; in switch_compat() 83 d->arch.x87_fip_width = 4; in switch_compat() 88 d->arch.is_32bit_pv = d->arch.has_32bit_shinfo = 0; in switch_compat() 121 xfree(v->arch.pv_vcpu.trap_ctxt); in pv_vcpu_destroy() 122 v->arch.pv_vcpu.trap_ctxt = NULL; in pv_vcpu_destroy() 142 if ( !v->arch.pv_vcpu.trap_ctxt ) in pv_vcpu_initialise() 211 d->arch.ctxt_switch = &pv_csw; in pv_domain_initialise() 214 d->arch.is_32bit_pv = d->arch.has_32bit_shinfo = 0; in pv_domain_initialise() [all …]
|
A D | callback.c | 92 &curr->arch.vgc_flags); in register_guest_callback() 95 &curr->arch.vgc_flags); in register_guest_callback() 102 &curr->arch.vgc_flags); in register_guest_callback() 105 &curr->arch.vgc_flags); in register_guest_callback() 110 curr->arch.pv_vcpu.syscall32_disables_events = in register_guest_callback() 116 curr->arch.pv_vcpu.sysenter_disables_events = in register_guest_callback() 240 &curr->arch.vgc_flags); in compat_register_guest_callback() 243 &curr->arch.vgc_flags); in compat_register_guest_callback() 249 curr->arch.pv_vcpu.syscall32_disables_events = in compat_register_guest_callback() 256 curr->arch.pv_vcpu.sysenter_disables_events = in compat_register_guest_callback() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/ |
A D | vfp.c | 8 v->arch.vfp.fpexc = READ_CP32(FPEXC); in vfp_save_state() 12 v->arch.vfp.fpscr = READ_CP32(FPSCR); in vfp_save_state() 16 v->arch.vfp.fpinst = READ_CP32(FPINST); in vfp_save_state() 18 if ( v->arch.vfp.fpexc & FPEXC_FP2V ) in vfp_save_state() 26 : "=Q" (*v->arch.vfp.fpregs1) : "r" (v->arch.vfp.fpregs1)); in vfp_save_state() 33 : "=Q" (*v->arch.vfp.fpregs2) : "r" (v->arch.vfp.fpregs2)); in vfp_save_state() 46 : : "Q" (*v->arch.vfp.fpregs1), "r" (v->arch.vfp.fpregs1)); in vfp_restore_state() 52 : : "Q" (*v->arch.vfp.fpregs2), "r" (v->arch.vfp.fpregs2)); in vfp_restore_state() 54 if ( v->arch.vfp.fpexc & FPEXC_EX ) in vfp_restore_state() 61 WRITE_CP32(v->arch.vfp.fpscr, FPSCR); in vfp_restore_state() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/ |
A D | vm_event.c | 32 if ( unlikely(v->arch.vm_event->set_gprs) ) in hvm_vm_event_set_registers() 36 regs->rax = v->arch.vm_event->gprs.rax; in hvm_vm_event_set_registers() 37 regs->rbx = v->arch.vm_event->gprs.rbx; in hvm_vm_event_set_registers() 38 regs->rcx = v->arch.vm_event->gprs.rcx; in hvm_vm_event_set_registers() 39 regs->rdx = v->arch.vm_event->gprs.rdx; in hvm_vm_event_set_registers() 45 regs->r8 = v->arch.vm_event->gprs.r8; in hvm_vm_event_set_registers() 46 regs->r9 = v->arch.vm_event->gprs.r9; in hvm_vm_event_set_registers() 57 v->arch.vm_event->set_gprs = false; in hvm_vm_event_set_registers() 65 ASSERT(v->arch.vm_event); in hvm_vm_event_do_resume() 69 w = &v->arch.vm_event->write_data; in hvm_vm_event_do_resume() [all …]
|
A D | vpt.c | 188 if ( v->arch.hvm_vcpu.guest_time == 0 ) in pt_thaw_time() 192 v->arch.hvm_vcpu.guest_time = 0; in pt_thaw_time() 203 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_save_timer() 219 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_restore_timer() 257 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_update_irq() 354 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_intr_post() 409 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_migrate() 425 spin_lock(&v->arch.hvm_vcpu.tm_lock); in create_periodic_time() 513 spin_lock(&v->arch.hvm_vcpu.tm_lock); in pt_adjust_vcpu() 534 vpit = &v->domain->arch.vpit; in pt_adjust_global_vcpu_target() [all …]
|
A D | viridian.c | 304 goi = &d->arch.hvm_domain.viridian.guest_os_id; in dump_guest_os_id() 318 hg = &d->arch.hvm_domain.viridian.hypercall_gpa; in dump_hypercall() 329 va = &v->arch.hvm_vcpu.viridian.vp_assist.msr; in dump_vp_assist() 339 rt = &d->arch.hvm_domain.viridian.reference_tsc; in dump_reference_tsc() 412 v->arch.hvm_vcpu.viridian.vp_assist.va = va; in initialize_vp_assist() 428 v->arch.hvm_vcpu.viridian.vp_assist.va = NULL; in teardown_vp_assist() 470 v->arch.hvm_vcpu.viridian.vp_assist.vector = 0; in viridian_complete_apic_assist() 483 v->arch.hvm_vcpu.viridian.vp_assist.vector = 0; in viridian_abort_apic_assist() 516 if ( !host_tsc_is_safe() || d->arch.vtsc ) in update_reference_tsc() 733 *val = (uint64_t)d->arch.tsc_khz * 1000ull; in rdmsr_viridian_regs() [all …]
|
A D | hvm.c | 427 v->arch.hvm_vcpu.msr_tsc_adjust += v->arch.hvm_vcpu.cache_tsc_offset in hvm_set_guest_tsc_msr() 528 if ( unlikely(v->arch.vm_event) && v->arch.monitor.next_interrupt_enabled ) in hvm_do_resume() 604 if ( !d->arch.hvm_domain.pl_time || !d->arch.hvm_domain.irq || in hvm_domain_initialise() 605 !d->arch.hvm_domain.params || !d->arch.hvm_domain.io_handler ) in hvm_domain_initialise() 894 p = d->arch.cpuid; in hvm_efer_valid() 938 p = d->arch.cpuid; in hvm_cr4_guest_valid_bits() 3376 if ( currd->arch.vtsc ) in _hvm_rdtsc_intercept() 3870 typeof(v->arch.xsave_area->fpu_sse) *fpu_ctxt = v->arch.fpu_ctxt; in hvm_vcpu_reset_state() 3894 memset(&v->arch.user_regs, 0, sizeof(v->arch.user_regs)); in hvm_vcpu_reset_state() 3898 memset(&v->arch.debugreg, 0, sizeof(v->arch.debugreg)); in hvm_vcpu_reset_state() [all …]
|
A D | ioreq.c | 72 struct hvm_vcpu_io *vio = &v->arch.hvm_vcpu.hvm_io; in hvm_io_assist() 127 struct hvm_vcpu_io *vio = &v->arch.hvm_vcpu.hvm_io; in handle_hvm_io_completion() 208 set_bit(i, &d->arch.hvm_domain.ioreq_gfn.mask); in hvm_free_ioreq_gfn() 664 id = d->arch.hvm_domain.ioreq_server.id; in next_ioservid() 678 d->arch.hvm_domain.ioreq_server.id = id; in next_ioservid() 711 &d->arch.hvm_domain.ioreq_server.list); in hvm_create_ioreq_server() 715 d->arch.hvm_domain.default_ioreq_server = s; in hvm_create_ioreq_server() 1120 s = d->arch.hvm_domain.default_ioreq_server; in hvm_set_dm_domain() 1180 cf8 = d->arch.hvm_domain.pci_cf8; in hvm_select_ioreq_server() 1260 return d->arch.hvm_domain.default_ioreq_server; in hvm_select_ioreq_server() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | i387.c | 27 ASSERT(v->arch.xsave_area); in fpu_xrstor() 42 const typeof(v->arch.xsave_area->fpu_sse) *fpu_ctxt = v->arch.fpu_ctxt; in fpu_fxrstor() 142 ASSERT(v->arch.xsave_area); in fpu_xsave() 157 typeof(v->arch.xsave_area->fpu_sse) *fpu_ctxt = v->arch.fpu_ctxt; in fpu_fxsave() 303 if ( v->arch.xsave_area ) in vcpu_init_fpu() 304 v->arch.fpu_ctxt = &v->arch.xsave_area->fpu_sse; in vcpu_init_fpu() 308 v->arch.fpu_ctxt = _xzalloc(sizeof(v->arch.xsave_area->fpu_sse), in vcpu_init_fpu() 310 if ( v->arch.fpu_ctxt ) in vcpu_init_fpu() 312 typeof(v->arch.xsave_area->fpu_sse) *fpu_sse = v->arch.fpu_ctxt; in vcpu_init_fpu() 327 if ( v->arch.xsave_area ) in vcpu_destroy_fpu() [all …]
|
A D | domain.c | 372 xfree(v->arch.msr); in vcpu_initialise() 373 v->arch.msr = NULL; in vcpu_initialise() 385 xfree(v->arch.msr); in vcpu_destroy() 386 v->arch.msr = NULL; in vcpu_destroy() 571 xfree(d->arch.msr); in arch_domain_create() 584 xfree(d->arch.e820); in arch_domain_destroy() 586 xfree(d->arch.msr); in arch_domain_destroy() 848 typeof(v->arch.xsave_area->fpu_sse) *fpu_sse = v->arch.fpu_ctxt; in arch_set_info_guest() 887 v->arch.pv_vcpu.iopl = v->arch.user_regs.eflags & X86_EFLAGS_IOPL; in arch_set_info_guest() 963 memset(v->arch.debugreg, 0, sizeof(v->arch.debugreg)); in arch_set_info_guest() [all …]
|
/xen-4.10.0-shim-comet/tools/include/xen-foreign/ |
A D | mkheader.py | 7 arch = sys.argv[1]; variable 133 """ % (arch, sys.argv[0], fileid, fileid) 135 if arch in header: 136 output += header[arch]; 152 replace = define + "_" + arch; 181 output += "typedef struct %s_%s %s_%s_t;\n" % (struct, arch, struct, arch); 185 if arch in footer: 186 output += footer[arch]; 193 replace = define + "_" + arch.upper(); 195 replace = define + "_" + arch; [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/hap/ |
A D | hap.c | 201 d->arch.paging.mode |= PG_log_dirty; in hap_enable_log_dirty() 259 d->arch.paging.hap.free_pages--; in hap_alloc() 272 d->arch.paging.hap.free_pages++; in hap_free() 288 d->arch.paging.hap.p2m_pages++; in hap_alloc_p2m_page() 321 d->arch.paging.hap.p2m_pages--; in hap_free_p2m_page() 322 d->arch.paging.hap.total_pages++; in hap_free_p2m_page() 333 + d->arch.paging.hap.p2m_pages; in hap_get_allocation() 506 d->arch.altp2m_active = 0; in hap_enable() 523 d->arch.altp2m_active = 0; in hap_final_teardown() 525 if ( d->arch.altp2m_eptp ) in hap_final_teardown() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/ |
A D | asm-offsets.c | 65 OFFSET(VCPU_thread_flags, struct vcpu, arch.flags); in __dummy__() 69 arch.pv_vcpu.failsafe_callback_eip); in __dummy__() 71 arch.pv_vcpu.failsafe_callback_cs); in __dummy__() 73 arch.pv_vcpu.syscall_callback_eip); in __dummy__() 75 arch.pv_vcpu.syscall32_callback_eip); in __dummy__() 77 arch.pv_vcpu.syscall32_callback_cs); in __dummy__() 79 arch.pv_vcpu.syscall32_disables_events); in __dummy__() 81 arch.pv_vcpu.sysenter_callback_eip); in __dummy__() 83 arch.pv_vcpu.sysenter_callback_cs); in __dummy__() 85 arch.pv_vcpu.sysenter_disables_events); in __dummy__() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/cpu/mcheck/ |
A D | vmce.c | 64 v->arch.vmce.mcg_status = 0; in vmce_init_vcpu() 70 spin_lock_init(&v->arch.vmce.lock); in vmce_init_vcpu() 91 v->arch.vmce.mcg_cap = ctxt->caps; in vmce_restore_vcpu() 182 spin_lock(&cur->arch.vmce.lock); in vmce_rdmsr() 194 *val = cur->arch.vmce.mcg_cap; in vmce_rdmsr() 229 spin_unlock(&cur->arch.vmce.lock); in vmce_rdmsr() 310 spin_lock(&cur->arch.vmce.lock); in vmce_wrmsr() 319 cur->arch.vmce.mcg_status = val; in vmce_wrmsr() 348 spin_unlock(&cur->arch.vmce.lock); in vmce_wrmsr() 452 spin_lock(&v->arch.vmce.lock); in vcpu_fill_mc_msrs() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/ |
A D | vfp.c | 27 : "=Q" (*v->arch.vfp.fpregs) : "r" (v->arch.vfp.fpregs)); in vfp_save_state() 29 v->arch.vfp.fpsr = READ_SYSREG32(FPSR); in vfp_save_state() 30 v->arch.vfp.fpcr = READ_SYSREG32(FPCR); in vfp_save_state() 32 v->arch.vfp.fpexc32_el2 = READ_SYSREG32(FPEXC32_EL2); in vfp_save_state() 56 : : "Q" (*v->arch.vfp.fpregs), "r" (v->arch.vfp.fpregs)); in vfp_restore_state() 58 WRITE_SYSREG32(v->arch.vfp.fpsr, FPSR); in vfp_restore_state() 59 WRITE_SYSREG32(v->arch.vfp.fpcr, FPCR); in vfp_restore_state() 61 WRITE_SYSREG32(v->arch.vfp.fpexc32_el2, FPEXC32_EL2); in vfp_restore_state()
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/ |
A D | paging.c | 64 page = d->arch.paging.alloc_page(d); in paging_new_log_dirty_page() 71 d->arch.paging.log_dirty.allocs++; in paging_new_log_dirty_page() 112 d->arch.paging.log_dirty.allocs--; in paging_free_log_dirty_page() 129 if ( !d->arch.paging.preempt.dom ) in paging_free_log_dirty_bitmap() 205 d->arch.paging.preempt.dom = NULL; in paging_free_log_dirty_bitmap() 376 mfn = d->arch.paging.log_dirty.top; in paging_mfn_is_dirty() 439 if ( !d->arch.paging.preempt.dom ) in paging_log_dirty_op() 579 d->arch.paging.preempt.dom = NULL; in paging_log_dirty_op() 634 d->arch.paging.log_dirty.ops = ops; in paging_log_dirty_init() 648 mm_lock_init(&d->arch.paging.lock); in paging_domain_init() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/vmx/ |
A D | vmx.c | 407 d->arch.ctxt_switch = &csw; in vmx_domain_initialise() 469 v->arch.user_regs.rax = 1; in vmx_vcpu_initialise() 692 v->arch.hvm_vcpu.flag_dr_dirty = 0; in vmx_save_dr() 710 v->arch.hvm_vcpu.flag_dr_dirty = 1; in __restore_debug_registers() 786 v->arch.guest_table = in vmx_restore_cr0_cr3() 791 v->arch.hvm_vcpu.guest_cr[3] = cr3; in vmx_restore_cr0_cr3() 1285 return v->arch.hvm_vmx.shadow_gs; in vmx_get_shadow_gs_base() 1523 __vmwrite(HOST_CR3, v->arch.cr3); in vmx_update_host_cr3() 1622 v->arch.hvm_vcpu.hw_cr[0] = in vmx_update_guest_cr() 1637 v->arch.hvm_vcpu.hw_cr[4] |= v->arch.hvm_vcpu.guest_cr[4]; in vmx_update_guest_cr() [all …]
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | shared.h | 5 (u32 *)&(d)->shared_info->native.arch.nmi_reason : \ 6 (u32 *)&(d)->shared_info->compat.arch.nmi_reason) 12 d->shared_info->native.arch.field : \ 13 d->shared_info->compat.arch.field; \ 19 d->shared_info->native.arch.field = val; \ 21 d->shared_info->compat.arch.field = val; \ 28 v->vcpu_info->native.arch.field : \ 29 v->vcpu_info->compat.arch.field; \ 35 v->vcpu_info->native.arch.field = val; \ 37 v->vcpu_info->compat.arch.field = val; \
|
/xen-4.10.0-shim-comet/xen/include/ |
A D | xlat.lst | 10 ? pmu_amd_ctxt arch-x86/pmu.h 11 ? pmu_arch arch-x86/pmu.h 12 ? pmu_cntr_pair arch-x86/pmu.h 13 ? pmu_intel_ctxt arch-x86/pmu.h 14 ? pmu_regs arch-x86/pmu.h 15 ! cpu_user_regs arch-x86/xen-@arch@.h 16 ! trap_info arch-x86/xen.h 18 ? mc arch-x86/xen-mca.h 24 ? mcinfo_msr arch-x86/xen-mca.h 26 ! mc_fetch arch-x86/xen-mca.h [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/svm/ |
A D | svm.c | 174 v->arch.hvm_vcpu.flag_dr_dirty = 0; in svm_save_dr() 200 if ( v->arch.hvm_vcpu.flag_dr_dirty ) in __restore_debug_registers() 203 v->arch.hvm_vcpu.flag_dr_dirty = 1; in __restore_debug_registers() 246 c->cr0 = v->arch.hvm_vcpu.guest_cr[0]; in svm_vmcb_save() 247 c->cr2 = v->arch.hvm_vcpu.guest_cr[2]; in svm_vmcb_save() 248 c->cr3 = v->arch.hvm_vcpu.guest_cr[3]; in svm_vmcb_save() 310 v->arch.guest_table = in svm_vmcb_restore() 1195 d->arch.ctxt_switch = &csw; in svm_domain_initialise() 1208 v->arch.hvm_svm.launch_core = -1; in svm_vcpu_initialise() 2266 v->arch.hvm_svm.vmcb_in_sync = 0; in svm_vmexit_do_vmload() [all …]
|