Home
last modified time | relevance | path

Searched refs:sregs (Results 1 – 24 of 24) sorted by relevance

/arch/powerpc/kvm/
De500.c366 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 …]
De500mc.c219 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 …]
Dbooke.c1488 struct kvm_sregs *sregs) in get_sregs_base() argument
1492 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base()
1494 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base()
1495 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base()
1496 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base()
1497 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base()
1498 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base()
1499 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base()
1500 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base()
1501 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base()
[all …]
De500_mmu.c574 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 …]
Dbook3s_pr.c1296 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 …]
De500.h138 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);
Dbook3s.c488 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
490 return vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs()
494 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
496 return vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs()
Dbook3s_hv.c1213 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_hv() argument
1217 memset(sregs, 0, sizeof(struct kvm_sregs)); in kvm_arch_vcpu_ioctl_get_sregs_hv()
1218 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_hv()
1220 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv()
1221 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv()
1228 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_hv() argument
1233 if (sregs->pvr != vcpu->arch.pvr) in kvm_arch_vcpu_ioctl_set_sregs_hv()
1238 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv()
1239 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv()
1240 vcpu->arch.slb[j].origv = sregs->u.s.ppc64.slb[i].slbv; in kvm_arch_vcpu_ioctl_set_sregs_hv()
/arch/s390/kernel/
Dsignal.c67 _sigregs sregs; member
120 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument
129 memcpy(&user_sregs.regs.gprs, &regs->gprs, sizeof(sregs->regs.gprs)); in save_sigregs()
133 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs()
138 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument
145 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs()
166 memcpy(&regs->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs()
228 if (restore_sigregs(regs, &frame->sregs)) in SYSCALL_DEFINE0()
314 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame()
322 if (save_sigregs(regs, &frame->sregs)) in setup_frame()
Dcompat_signal.c39 _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()
Dcompat_linux.h70 __u32 sregs; /* pointer */ member
/arch/mips/sgi-ip27/
Dip27-console.c30 return &ioc3->sregs.uarta; in console_uart()
/arch/s390/include/uapi/asm/
Dsigcontext.h80 _sigregs __user *sregs; member
/arch/sparc/include/uapi/asm/
Ductx.h43 unsigned int sregs[32]; member
/arch/arm/boot/dts/
Dhighbank.dts133 sregs@fff3c200 {
134 compatible = "calxeda,hb-sregs-l2-ecc";
Decx-common.dtsi141 sregs@fff3c000 {
142 compatible = "calxeda,hb-sregs";
/arch/x86/kvm/
Dx86.c7639 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
7643 kvm_get_segment(vcpu, &sregs->cs, VCPU_SREG_CS); in kvm_arch_vcpu_ioctl_get_sregs()
7644 kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); in kvm_arch_vcpu_ioctl_get_sregs()
7645 kvm_get_segment(vcpu, &sregs->es, VCPU_SREG_ES); in kvm_arch_vcpu_ioctl_get_sregs()
7646 kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); in kvm_arch_vcpu_ioctl_get_sregs()
7647 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_get_sregs()
7648 kvm_get_segment(vcpu, &sregs->ss, VCPU_SREG_SS); in kvm_arch_vcpu_ioctl_get_sregs()
7650 kvm_get_segment(vcpu, &sregs->tr, VCPU_SREG_TR); in kvm_arch_vcpu_ioctl_get_sregs()
7651 kvm_get_segment(vcpu, &sregs->ldt, VCPU_SREG_LDTR); in kvm_arch_vcpu_ioctl_get_sregs()
7654 sregs->idt.limit = dt.size; in kvm_arch_vcpu_ioctl_get_sregs()
[all …]
/arch/arm/kvm/
Dguest.c253 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
259 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
/arch/powerpc/include/asm/
Dkvm_ppc.h268 int (*get_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
269 int (*set_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
412 int kvmppc_core_get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
413 int kvmppc_core_set_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
415 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
416 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
/arch/ia64/include/asm/sn/
Dioc3.h88 struct ioc3_sioregs sregs; member
/arch/arm64/kvm/
Dguest.c334 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
340 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
/arch/s390/kvm/
Dkvm-s390.c2774 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
2776 memcpy(&vcpu->run->s.regs.acrs, &sregs->acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_set_sregs()
2777 memcpy(&vcpu->arch.sie_block->gcr, &sregs->crs, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_set_sregs()
2782 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
2784 memcpy(&sregs->acrs, &vcpu->run->s.regs.acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_get_sregs()
2785 memcpy(&sregs->crs, &vcpu->arch.sie_block->gcr, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_get_sregs()
/arch/mips/include/asm/sn/
Dioc3.h164 struct ioc3_sioregs sregs; /* 0x20000 */ member
/arch/mips/kvm/
Dmips.c1033 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument
1039 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument