Home
last modified time | relevance | path

Searched refs:gs_cb (Results 1 – 14 of 14) sorted by relevance

/arch/s390/kernel/
Dguarded_storage.c18 kfree(current->thread.gs_cb); in exit_thread_gs()
20 current->thread.gs_cb = current->thread.gs_bc_cb = NULL; in exit_thread_gs()
26 struct gs_cb *gs_cb; in gs_enable() local
28 if (!current->thread.gs_cb) { in gs_enable()
29 gs_cb = kzalloc(sizeof(*gs_cb), GFP_KERNEL); in gs_enable()
30 if (!gs_cb) in gs_enable()
32 gs_cb->gsd = 25; in gs_enable()
35 load_gs_cb(gs_cb); in gs_enable()
36 current->thread.gs_cb = gs_cb; in gs_enable()
44 if (current->thread.gs_cb) { in gs_disable()
[all …]
Dptrace.c74 if (task->thread.gs_cb) in update_cr_regs()
1158 struct gs_cb *data = target->thread.gs_cb; in s390_gs_cb_get()
1167 data, 0, sizeof(struct gs_cb)); in s390_gs_cb_get()
1175 struct gs_cb gs_cb = { }, *data = NULL; in s390_gs_cb_set() local
1180 if (!target->thread.gs_cb) { in s390_gs_cb_set()
1185 if (!target->thread.gs_cb) in s390_gs_cb_set()
1186 gs_cb.gsd = 25; in s390_gs_cb_set()
1188 save_gs_cb(&gs_cb); in s390_gs_cb_set()
1190 gs_cb = *target->thread.gs_cb; in s390_gs_cb_set()
1192 &gs_cb, 0, sizeof(gs_cb)); in s390_gs_cb_set()
[all …]
Dentry.h78 long sys_s390_guarded_storage(int command, struct gs_cb __user *);
Dmachine_kexec.c129 save_gs_cb((struct gs_cb *) mcesa->guarded_storage_save_area); in __machine_kdump()
Dprocess.c141 p->thread.gs_cb = NULL; in copy_thread_tls()
Dnmi.c241 load_gs_cb((struct gs_cb *) in s390_validate_registers()
Dcompat_wrapper.c182 COMPAT_SYSCALL_WRAP2(s390_guarded_storage, int, command, struct gs_cb *, gs_cb);
/arch/s390/include/uapi/asm/
Dguarded_storage.h7 struct gs_cb { struct
56 static inline void load_gs_cb(struct gs_cb *gs_cb) in load_gs_cb() argument
58 asm volatile(".insn rxy,0xe3000000004d,0,%0" : : "Q" (*gs_cb)); in load_gs_cb()
61 static inline void store_gs_cb(struct gs_cb *gs_cb) in store_gs_cb() argument
63 asm volatile(".insn rxy,0xe30000000049,0,%0" : : "Q" (*gs_cb)); in store_gs_cb()
66 static inline void save_gs_cb(struct gs_cb *gs_cb) in save_gs_cb() argument
68 if (gs_cb) in save_gs_cb()
69 store_gs_cb(gs_cb); in save_gs_cb()
72 static inline void restore_gs_cb(struct gs_cb *gs_cb) in restore_gs_cb() argument
74 if (gs_cb) in restore_gs_cb()
[all …]
/arch/s390/include/asm/
Dswitch_to.h41 save_gs_cb(prev->thread.gs_cb); \
45 restore_gs_cb(next->thread.gs_cb); \
Dprocessor.h143 struct gs_cb *gs_cb; /* Current guarded storage cb */ member
144 struct gs_cb *gs_bc_cb; /* Broadcast guarded storage cb */
Dkvm_host.h612 struct gs_cb *host_gscb;
/arch/s390/kvm/
Dkvm-s390.c3286 struct gs_cb *gscb; in sync_regs()
3289 gscb = (struct gs_cb *) &kvm_run->s.regs.gscb; in sync_regs()
3359 if (current->thread.gs_cb) { in sync_regs()
3360 vcpu->arch.host_gscb = current->thread.gs_cb; in sync_regs()
3364 current->thread.gs_cb = (struct gs_cb *) in sync_regs()
3366 restore_gs_cb(current->thread.gs_cb); in sync_regs()
3400 save_gs_cb(current->thread.gs_cb); in store_regs()
3402 current->thread.gs_cb = vcpu->arch.host_gscb; in store_regs()
Dpriv.c63 current->thread.gs_cb = (struct gs_cb *)&vcpu->run->s.regs.gscb; in handle_gs()
64 restore_gs_cb(current->thread.gs_cb); in handle_gs()
Dinterrupt.c435 save_gs_cb(current->thread.gs_cb); in __write_machine_check()