/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 | 220 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500mc() argument 224 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc() 226 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc() 228 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc() 229 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc() 230 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc() 231 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc() 233 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc() 235 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc() 237 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc() [all …]
|
D | booke.c | 1510 struct kvm_sregs *sregs) in get_sregs_base() argument 1514 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base() 1516 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base() 1517 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base() 1518 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base() 1519 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base() 1520 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base() 1521 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base() 1522 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base() 1523 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 | 1463 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument 1468 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1470 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1473 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1474 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1478 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr() 1481 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1482 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1490 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument 1495 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 | 533 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 538 ret = vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs() 545 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument 550 ret = vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs()
|
D | book3s_hv.c | 2063 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_hv() argument 2067 memset(sregs, 0, sizeof(struct kvm_sregs)); in kvm_arch_vcpu_ioctl_get_sregs_hv() 2068 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_hv() 2070 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige; in kvm_arch_vcpu_ioctl_get_sregs_hv() 2071 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_hv() 2078 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_hv() argument 2083 if (sregs->pvr != vcpu->arch.pvr) in kvm_arch_vcpu_ioctl_set_sregs_hv() 2088 if (sregs->u.s.ppc64.slb[i].slbe & SLB_ESID_V) { in kvm_arch_vcpu_ioctl_set_sregs_hv() 2089 vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; in kvm_arch_vcpu_ioctl_set_sregs_hv() 2090 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 | 68 _sigregs sregs; member 121 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument 130 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 134 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 139 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument 146 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 167 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs() 229 if (restore_sigregs(regs, &frame->sregs)) in SYSCALL_DEFINE0() 315 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame() 323 if (save_sigregs(regs, &frame->sregs)) in setup_frame()
|
D | compat_signal.c | 40 _sigregs32 sregs; member 67 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 82 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 87 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 95 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 191 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 283 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32() 290 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
D | compat_linux.h | 60 __u32 sregs; /* pointer */ member
|
/arch/mips/sgi-ip30/ |
D | ip30-console.c | 13 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/calxeda/ |
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 | 11316 static void __get_sregs_common(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in __get_sregs_common() argument 11323 kvm_get_segment(vcpu, &sregs->cs, VCPU_SREG_CS); in __get_sregs_common() 11324 kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); in __get_sregs_common() 11325 kvm_get_segment(vcpu, &sregs->es, VCPU_SREG_ES); in __get_sregs_common() 11326 kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); in __get_sregs_common() 11327 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in __get_sregs_common() 11328 kvm_get_segment(vcpu, &sregs->ss, VCPU_SREG_SS); in __get_sregs_common() 11330 kvm_get_segment(vcpu, &sregs->tr, VCPU_SREG_TR); in __get_sregs_common() 11331 kvm_get_segment(vcpu, &sregs->ldt, VCPU_SREG_LDTR); in __get_sregs_common() 11334 sregs->idt.limit = dt.size; in __get_sregs_common() [all …]
|
/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 263 int (*get_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 264 int (*set_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 430 int kvmppc_core_get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 431 int kvmppc_core_set_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 433 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 434 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
|
/arch/riscv/kvm/ |
D | vcpu.c | 283 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 289 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|
/arch/mips/include/asm/sn/ |
D | ioc3.h | 156 struct ioc3_sioregs sregs; /* 0x20000 */ member
|
/arch/arm64/kvm/ |
D | pmu-emul.c | 360 struct kvm_sync_regs *sregs = &vcpu->run->s.regs; in kvm_pmu_should_notify_user() local 361 bool run_level = sregs->device_irq_level & KVM_ARM_DEV_PMU; in kvm_pmu_should_notify_user()
|
D | arch_timer.c | 866 struct kvm_sync_regs *sregs = &vcpu->run->s.regs; in kvm_timer_should_notify_user() local 872 vlevel = sregs->device_irq_level & KVM_ARM_DEV_EL1_VTIMER; in kvm_timer_should_notify_user() 873 plevel = sregs->device_irq_level & KVM_ARM_DEV_EL1_PTIMER; in kvm_timer_should_notify_user()
|
D | guest.c | 807 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs() argument 813 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs() argument
|
/arch/x86/include/uapi/asm/ |
D | kvm.h | 430 struct kvm_sregs sregs; member
|