/xen/xen/arch/x86/x86_64/ |
A D | asm-offsets.c | 115 OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel); in __dummy__() 116 OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu); in __dummy__() 117 OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset); in __dummy__() 118 OFFSET(CPUINFO_cr4, struct cpu_info, cr4); in __dummy__() 119 OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3); in __dummy__() 120 OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3); in __dummy__() 121 OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl); in __dummy__() 122 OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl); in __dummy__() 123 OFFSET(CPUINFO_spec_ctrl_flags, struct cpu_info, spec_ctrl_flags); in __dummy__() 125 OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3); in __dummy__() [all …]
|
/xen/xen/include/asm-arm/ |
A D | current.h | 24 struct cpu_info { struct 30 static inline struct cpu_info *get_cpu_info(void) in get_cpu_info() argument 40 return (struct cpu_info *)((sp & ~(STACK_SIZE - 1)) + in get_cpu_info() 41 STACK_SIZE - sizeof(struct cpu_info)); in get_cpu_info()
|
A D | domain.h | 130 struct cpu_info *cpu_info; member
|
A D | event.h | 13 struct cpu_user_regs *regs = &v->arch.cpu_info->guest_cpu_user_regs; in vcpu_event_delivery_is_enabled()
|
/xen/xen/include/asm-x86/ |
A D | current.h | 38 struct cpu_info { struct 80 static inline struct cpu_info *get_cpu_info_from_stack(unsigned long sp) in get_cpu_info_from_stack() argument 82 return (struct cpu_info *)((sp | (STACK_SIZE - 1)) + 1) - 1; in get_cpu_info_from_stack() 85 static inline struct cpu_info *get_cpu_info(void) in get_cpu_info()
|
A D | spec_ctrl.h | 61 struct cpu_info *info = get_cpu_info(); in init_shadow_spec_ctrl_state() 76 static always_inline void spec_ctrl_enter_idle(struct cpu_info *info) in spec_ctrl_enter_idle() 112 static always_inline void spec_ctrl_exit_idle(struct cpu_info *info) in spec_ctrl_exit_idle()
|
A D | processor.h | 314 struct cpu_info *info = get_cpu_info(); in write_cr4()
|
/xen/xen/common/ |
A D | wait.c | 124 struct cpu_info *cpu_info = get_cpu_info(); in __prepare_to_wait() local 127 u32 entry_vector = cpu_info->guest_cpu_user_regs.entry_vector; in __prepare_to_wait() 163 : "i" (PAGE_SIZE), "0" (0), "1" (cpu_info), "2" (wqv->stack) in __prepare_to_wait() 175 cpu_info->guest_cpu_user_regs.entry_vector = entry_vector; in __prepare_to_wait()
|
/xen/xen/arch/arm/arm64/ |
A D | asm-offsets.c | 48 DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info)); in __dummy__() 49 OFFSET(CPUINFO_flags, struct cpu_info, flags); in __dummy__()
|
A D | domain.c | 29 #define C(hyp,user) regs->user = vcpu->arch.cpu_info->guest_cpu_user_regs.hyp in vcpu_regs_hyp_to_user() 45 #define C(hyp,user) vcpu->arch.cpu_info->guest_cpu_user_regs.hyp = regs->user in vcpu_regs_user_to_hyp()
|
/xen/xen/arch/arm/arm32/ |
A D | domain.c | 30 #define C(hyp,user) regs->user = vcpu->arch.cpu_info->guest_cpu_user_regs.hyp in vcpu_regs_hyp_to_user() 38 #define C(hyp,user) vcpu->arch.cpu_info->guest_cpu_user_regs.hyp = regs->user in vcpu_regs_user_to_hyp()
|
A D | asm-offsets.c | 63 DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info)); in __dummy__()
|
/xen/xen/arch/x86/pv/ |
A D | domain.c | 466 struct cpu_info *cpu_info = get_cpu_info(); in toggle_guest_mode() local 468 cpu_info->root_pgt_changed = true; in toggle_guest_mode() 469 cpu_info->pv_cr3 = __pa(this_cpu(root_pgt)) | in toggle_guest_mode() 476 cpu_info->pv_cr3 &= ~X86_CR3_NOFLUSH; in toggle_guest_mode()
|
/xen/xen/arch/arm/ |
A D | domain.c | 562 BUILD_BUG_ON( sizeof(struct cpu_info) > STACK_SIZE ); in arch_vcpu_create() 568 v->arch.cpu_info = (struct cpu_info *)(v->arch.stack in arch_vcpu_create() 570 - sizeof(struct cpu_info)); in arch_vcpu_create() 571 memset(v->arch.cpu_info, 0, sizeof(*v->arch.cpu_info)); in arch_vcpu_create() 573 v->arch.saved_context.sp = (register_t)v->arch.cpu_info; in arch_vcpu_create() 597 v->arch.cpu_info->flags |= CPUINFO_WORKAROUND_2_FLAG; in arch_vcpu_create()
|
A D | vm_event.c | 37 struct cpu_user_regs *regs = &v->arch.cpu_info->guest_cpu_user_regs; in vm_event_set_registers()
|
A D | traps.c | 63 BUILD_BUG_ON((sizeof (struct cpu_info)) & 0xf); in build_assertions() 67 BUILD_BUG_ON((sizeof (struct cpu_info)) & 0x7); in build_assertions() 976 _show_registers(&v->arch.cpu_info->guest_cpu_user_regs, &ctxt, 1, v); in vcpu_show_registers() 1125 (STACK_SIZE - sizeof(struct cpu_info)); in show_trace() 1195 if ( !psr_mode_is_user(&v->arch.cpu_info->guest_cpu_user_regs) ) in vcpu_show_execution_state() 1196 show_guest_stack(v, &v->arch.cpu_info->guest_cpu_user_regs); in vcpu_show_execution_state() 1494 struct cpu_user_regs *regs = &v->arch.cpu_info->guest_cpu_user_regs; in arch_hypercall_tasklet_result() 1996 return !(v->arch.cpu_info->flags & CPUINFO_WORKAROUND_2_FLAG) && in needs_ssbd_flip()
|
A D | setup.c | 984 memcpy(idle_vcpu[0]->arch.cpu_info, get_cpu_info(), in start_xen() 985 sizeof(struct cpu_info)); in start_xen() 986 switch_stack_and_jump(idle_vcpu[0]->arch.cpu_info, init_done); in start_xen()
|
A D | smpboot.c | 305 memset(get_cpu_info(), 0, sizeof (struct cpu_info)); in start_secondary()
|
/xen/xen/arch/x86/cpu/ |
A D | common.c | 832 BUILD_BUG_ON((sizeof(struct cpu_info) - in load_system_tables() 833 offsetof(struct cpu_info, guest_cpu_user_regs.es)) & 0xf); in load_system_tables()
|
A D | mwait-idle.c | 770 struct cpu_info *info = get_cpu_info(); in mwait_idle()
|
/xen/xen/arch/x86/acpi/ |
A D | power.c | 197 struct cpu_info *ci; in enter_state()
|
A D | cpu_idle.c | 468 struct cpu_info *info = get_cpu_info(); in mwait_idle_with_hints() 490 struct cpu_info *info = get_cpu_info(); in acpi_idle_do_entry() 703 struct cpu_info *info = get_cpu_info(); in acpi_processor_idle()
|
/xen/xen/arch/x86/ |
A D | smpboot.c | 566 stack_start = stack_base[cpu] + STACK_SIZE - sizeof(struct cpu_info); in do_boot_cpu() 989 struct cpu_info *info; in cpu_smpboot_alloc()
|
A D | spec_ctrl.c | 1217 struct cpu_info *info = get_cpu_info(); in init_speculation_mitigations()
|
A D | mm.c | 519 struct cpu_info *cpu_info = get_cpu_info(); in write_ptbase() local 527 cpu_info->root_pgt_changed = true; in write_ptbase() 528 cpu_info->pv_cr3 = __pa(this_cpu(root_pgt)); in write_ptbase() 530 cpu_info->pv_cr3 |= get_pcid_bits(v, true); in write_ptbase() 536 cpu_info->use_pv_cr3 = false; in write_ptbase() 537 cpu_info->xen_cr3 = 0; in write_ptbase() 540 cpu_info->pv_cr3 = 0; in write_ptbase()
|