/arch/powerpc/kvm/ |
D | e500.c | 366 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500() argument 370 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_SPE | in kvmppc_core_get_sregs_e500() 372 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500() 374 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500() 375 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500() 376 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500() 377 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500() 379 sregs->u.e.ivor_high[0] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL]; in kvmppc_core_get_sregs_e500() 380 sregs->u.e.ivor_high[1] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_DATA]; in kvmppc_core_get_sregs_e500() 381 sregs->u.e.ivor_high[2] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_ROUND]; in kvmppc_core_get_sregs_e500() [all …]
|
D | e500mc.c | 219 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500mc() argument 223 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc() 225 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc() 227 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc() 228 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc() 229 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc() 230 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc() 232 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc() 234 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc() 236 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc() [all …]
|
D | booke.c | 1483 struct kvm_sregs *sregs) in get_sregs_base() argument 1487 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base() 1489 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base() 1490 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base() 1491 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base() 1492 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base() 1493 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base() 1494 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base() 1495 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base() 1496 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base() [all …]
|
D | e500_mmu.c | 574 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in kvmppc_get_sregs_e500_tlb() argument 576 sregs->u.e.mas0 = vcpu->arch.shared->mas0; in kvmppc_get_sregs_e500_tlb() 577 sregs->u.e.mas1 = vcpu->arch.shared->mas1; in kvmppc_get_sregs_e500_tlb() 578 sregs->u.e.mas2 = vcpu->arch.shared->mas2; in kvmppc_get_sregs_e500_tlb() 579 sregs->u.e.mas7_3 = vcpu->arch.shared->mas7_3; in kvmppc_get_sregs_e500_tlb() 580 sregs->u.e.mas4 = vcpu->arch.shared->mas4; in kvmppc_get_sregs_e500_tlb() 581 sregs->u.e.mas6 = vcpu->arch.shared->mas6; in kvmppc_get_sregs_e500_tlb() 583 sregs->u.e.mmucfg = vcpu->arch.mmucfg; in kvmppc_get_sregs_e500_tlb() 584 sregs->u.e.tlbcfg[0] = vcpu->arch.tlbcfg[0]; in kvmppc_get_sregs_e500_tlb() 585 sregs->u.e.tlbcfg[1] = vcpu->arch.tlbcfg[1]; in kvmppc_get_sregs_e500_tlb() [all …]
|
D | book3s_pr.c | 1296 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument 1301 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1303 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1306 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1307 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1311 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr() 1314 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1315 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1323 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument 1328 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr() [all …]
|
D | e500.h | 138 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 139 int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
|
D | book3s.c | 465 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 467 return vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs() 471 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument 473 return vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs()
|
D | book3s_hv.c | 1058 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_hv() argument 1062 memset(sregs, 0, sizeof(struct kvm_sregs)); in kvm_arch_vcpu_ioctl_get_sregs_hv() 1063 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1065 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1066 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1073 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_hv() argument 1078 if (sregs->pvr != vcpu->arch.pvr) in kvm_arch_vcpu_ioctl_set_sregs_hv() 1083 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv() 1084 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv() 1085 vcpu->arch.slb[j].origv = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_hv()
|
/arch/s390/kernel/ |
D | signal.c | 65 _sigregs sregs; member 118 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument 127 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 131 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 136 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument 143 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 164 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs() 226 if (restore_sigregs(regs, &frame->sregs)) in SYSCALL_DEFINE0() 312 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame() 320 if (save_sigregs(regs, &frame->sregs)) in setup_frame()
|
D | compat_signal.c | 37 _sigregs32 sregs; member 179 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 194 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 199 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 207 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 305 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 398 sc.sregs = (__u32)(unsigned long __force) &frame->sregs; in setup_frame32() 406 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
D | compat_linux.h | 69 __u32 sregs; /* pointer */ member
|
/arch/mips/sgi-ip27/ |
D | ip27-console.c | 30 return &ioc3->sregs.uarta; in console_uart()
|
/arch/s390/include/uapi/asm/ |
D | sigcontext.h | 79 _sigregs __user *sregs; member
|
/arch/sparc/include/uapi/asm/ |
D | uctx.h | 42 unsigned int sregs[32]; member
|
/arch/arm/boot/dts/ |
D | highbank.dts | 133 sregs@fff3c200 { 134 compatible = "calxeda,hb-sregs-l2-ecc";
|
D | ecx-common.dtsi | 141 sregs@fff3c000 { 142 compatible = "calxeda,hb-sregs";
|
/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 246 int (*get_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 247 int (*set_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 386 int kvmppc_core_get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 387 int kvmppc_core_set_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 389 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 390 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
|
/arch/arm/kvm/ |
D | guest.c | 240 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 246 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|
/arch/x86/kvm/ |
D | x86.c | 7167 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 7171 kvm_get_segment(vcpu, &sregs->cs, VCPU_SREG_CS); in kvm_arch_vcpu_ioctl_get_sregs() 7172 kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); in kvm_arch_vcpu_ioctl_get_sregs() 7173 kvm_get_segment(vcpu, &sregs->es, VCPU_SREG_ES); in kvm_arch_vcpu_ioctl_get_sregs() 7174 kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); in kvm_arch_vcpu_ioctl_get_sregs() 7175 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_get_sregs() 7176 kvm_get_segment(vcpu, &sregs->ss, VCPU_SREG_SS); in kvm_arch_vcpu_ioctl_get_sregs() 7178 kvm_get_segment(vcpu, &sregs->tr, VCPU_SREG_TR); in kvm_arch_vcpu_ioctl_get_sregs() 7179 kvm_get_segment(vcpu, &sregs->ldt, VCPU_SREG_LDTR); in kvm_arch_vcpu_ioctl_get_sregs() 7182 sregs->idt.limit = dt.size; in kvm_arch_vcpu_ioctl_get_sregs() [all …]
|
/arch/arm64/kvm/ |
D | guest.c | 269 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 275 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|
/arch/ia64/include/asm/sn/ |
D | ioc3.h | 87 struct ioc3_sioregs sregs; member
|
/arch/s390/kvm/ |
D | kvm-s390.c | 2251 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument 2253 memcpy(&vcpu->run->s.regs.acrs, &sregs->acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_set_sregs() 2254 memcpy(&vcpu->arch.sie_block->gcr, &sregs->crs, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_set_sregs() 2260 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 2262 memcpy(&sregs->acrs, &vcpu->run->s.regs.acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_get_sregs() 2263 memcpy(&sregs->crs, &vcpu->arch.sie_block->gcr, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_get_sregs()
|
/arch/mips/include/asm/sn/ |
D | ioc3.h | 163 struct ioc3_sioregs sregs; /* 0x20000 */ member
|
/arch/mips/kvm/ |
D | mips.c | 1248 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 1254 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|