/arch/powerpc/kvm/ |
D | e500.c | 362 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500() argument 366 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_SPE | in kvmppc_core_get_sregs_e500() 368 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500() 370 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500() 371 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500() 372 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500() 373 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500() 375 sregs->u.e.ivor_high[0] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL]; in kvmppc_core_get_sregs_e500() 376 sregs->u.e.ivor_high[1] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_DATA]; in kvmppc_core_get_sregs_e500() 377 sregs->u.e.ivor_high[2] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_ROUND]; in kvmppc_core_get_sregs_e500() [all …]
|
D | e500mc.c | 215 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500mc() argument 219 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc() 221 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc() 223 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc() 224 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc() 225 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc() 226 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc() 228 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc() 230 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc() 232 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc() [all …]
|
D | booke.c | 1476 struct kvm_sregs *sregs) in get_sregs_base() argument 1480 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base() 1482 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base() 1483 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base() 1484 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base() 1485 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base() 1486 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base() 1487 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base() 1488 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base() 1489 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base() [all …]
|
D | e500_mmu.c | 567 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in kvmppc_get_sregs_e500_tlb() argument 569 sregs->u.e.mas0 = vcpu->arch.shared->mas0; in kvmppc_get_sregs_e500_tlb() 570 sregs->u.e.mas1 = vcpu->arch.shared->mas1; in kvmppc_get_sregs_e500_tlb() 571 sregs->u.e.mas2 = vcpu->arch.shared->mas2; in kvmppc_get_sregs_e500_tlb() 572 sregs->u.e.mas7_3 = vcpu->arch.shared->mas7_3; in kvmppc_get_sregs_e500_tlb() 573 sregs->u.e.mas4 = vcpu->arch.shared->mas4; in kvmppc_get_sregs_e500_tlb() 574 sregs->u.e.mas6 = vcpu->arch.shared->mas6; in kvmppc_get_sregs_e500_tlb() 576 sregs->u.e.mmucfg = vcpu->arch.mmucfg; in kvmppc_get_sregs_e500_tlb() 577 sregs->u.e.tlbcfg[0] = vcpu->arch.tlbcfg[0]; in kvmppc_get_sregs_e500_tlb() 578 sregs->u.e.tlbcfg[1] = vcpu->arch.tlbcfg[1]; in kvmppc_get_sregs_e500_tlb() [all …]
|
D | book3s_pr.c | 1475 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument 1480 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1482 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1485 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1486 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1490 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr() 1493 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1494 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1502 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument 1507 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr() [all …]
|
D | e500.h | 135 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 136 int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
|
D | book3s.c | 481 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 486 ret = vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs() 493 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument 498 ret = vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs()
|
D | book3s_hv.c | 1574 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_hv() argument 1578 memset(sregs, 0, sizeof(struct kvm_sregs)); in kvm_arch_vcpu_ioctl_get_sregs_hv() 1579 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1581 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1582 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv() 1589 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_hv() argument 1594 if (sregs->pvr != vcpu->arch.pvr) in kvm_arch_vcpu_ioctl_set_sregs_hv() 1599 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv() 1600 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv() 1601 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 | 67 _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, ®s->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(®s->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()
|
D | compat_signal.c | 39 _sigregs32 sregs; member 66 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 81 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 86 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 94 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 190 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 282 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32() 289 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
D | compat_linux.h | 70 __u32 sregs; /* pointer */ member
|
/arch/mips/sgi-ip30/ |
D | ip30-console.c | 12 return &ioc3->sregs.uarta; in console_uart()
|
/arch/mips/sgi-ip27/ |
D | ip27-console.c | 32 return &ioc3->sregs.uarta; in console_uart()
|
/arch/arm/boot/dts/ |
D | highbank.dts | 149 sregs@fff3c200 { 150 compatible = "calxeda,hb-sregs-l2-ecc";
|
D | ecx-common.dtsi | 131 sregs@fff3c000 { 132 compatible = "calxeda,hb-sregs";
|
/arch/s390/include/uapi/asm/ |
D | sigcontext.h | 80 _sigregs __user *sregs; member
|
/arch/sparc/include/uapi/asm/ |
D | uctx.h | 43 unsigned int sregs[32]; member
|
/arch/x86/kvm/ |
D | x86.c | 9762 static void __get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in __get_sregs() argument 9766 kvm_get_segment(vcpu, &sregs->cs, VCPU_SREG_CS); in __get_sregs() 9767 kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); in __get_sregs() 9768 kvm_get_segment(vcpu, &sregs->es, VCPU_SREG_ES); in __get_sregs() 9769 kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); in __get_sregs() 9770 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in __get_sregs() 9771 kvm_get_segment(vcpu, &sregs->ss, VCPU_SREG_SS); in __get_sregs() 9773 kvm_get_segment(vcpu, &sregs->tr, VCPU_SREG_TR); in __get_sregs() 9774 kvm_get_segment(vcpu, &sregs->ldt, VCPU_SREG_LDTR); in __get_sregs() 9777 sregs->idt.limit = dt.size; in __get_sregs() [all …]
|
/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 259 int (*get_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 260 int (*set_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 409 int kvmppc_core_get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 410 int kvmppc_core_set_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 412 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 413 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
|
/arch/arm64/kvm/ |
D | arch_timer.c | 634 struct kvm_sync_regs *sregs = &vcpu->run->s.regs; in kvm_timer_should_notify_user() local 640 vlevel = sregs->device_irq_level & KVM_ARM_DEV_EL1_VTIMER; in kvm_timer_should_notify_user() 641 plevel = sregs->device_irq_level & KVM_ARM_DEV_EL1_PTIMER; in kvm_timer_should_notify_user()
|
D | guest.c | 771 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 777 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|
D | pmu-emul.c | 406 struct kvm_sync_regs *sregs = &vcpu->run->s.regs; in kvm_pmu_should_notify_user() local 407 bool run_level = sregs->device_irq_level & KVM_ARM_DEV_PMU; in kvm_pmu_should_notify_user()
|
/arch/x86/include/uapi/asm/ |
D | kvm.h | 397 struct kvm_sregs sregs; member
|
/arch/mips/include/asm/sn/ |
D | ioc3.h | 156 struct ioc3_sioregs sregs; /* 0x20000 */ member
|
/arch/s390/kvm/ |
D | kvm-s390.c | 3623 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument 3627 memcpy(&vcpu->run->s.regs.acrs, &sregs->acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_set_sregs() 3628 memcpy(&vcpu->arch.sie_block->gcr, &sregs->crs, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_set_sregs() 3635 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 3639 memcpy(&sregs->acrs, &vcpu->run->s.regs.acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_get_sregs() 3640 memcpy(&sregs->crs, &vcpu->arch.sie_block->gcr, sizeof(sregs->crs)); in kvm_arch_vcpu_ioctl_get_sregs()
|