Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dset_sregs_test.c28 struct kvm_sregs sregs; in test_cr4_feature_bit() local
35 memcpy(&sregs, orig, sizeof(sregs)); in test_cr4_feature_bit()
36 sregs.cr4 |= feature_bit; in test_cr4_feature_bit()
38 rc = _vcpu_sregs_set(vcpu, &sregs); in test_cr4_feature_bit()
42 vcpu_sregs_get(vcpu, &sregs); in test_cr4_feature_bit()
43 TEST_ASSERT(!memcmp(&sregs, orig, sizeof(sregs)), "KVM modified sregs"); in test_cr4_feature_bit()
79 struct kvm_sregs sregs; in main() local
96 vcpu_sregs_get(vcpu, &sregs); in main()
98 sregs.cr4 |= calc_supported_cr4_feature_bits(); in main()
99 cr4 = sregs.cr4; in main()
[all …]
Dvmx_invalid_nested_guest_state.c56 struct kvm_sregs sregs; in main() local
90 memset(&sregs, 0, sizeof(sregs)); in main()
91 vcpu_sregs_get(vcpu, &sregs); in main()
92 sregs.tr.unusable = 1; in main()
93 vcpu_sregs_set(vcpu, &sregs); in main()
Dsync_regs_test.c89 struct kvm_sregs sregs; in main() local
146 vcpu_sregs_get(vcpu, &sregs); in main()
147 compare_sregs(&sregs, &run->s.regs.sregs); in main()
154 run->s.regs.sregs.apic_base = 1 << 11; in main()
167 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
169 run->s.regs.sregs.apic_base); in main()
174 vcpu_sregs_get(vcpu, &sregs); in main()
175 compare_sregs(&sregs, &run->s.regs.sregs); in main()
Dvmx_exception_with_invalid_guest_state.c60 static struct kvm_sregs sregs; in set_or_clear_invalid_guest_state() local
62 if (!sregs.cr0) in set_or_clear_invalid_guest_state()
63 vcpu_sregs_get(vcpu, &sregs); in set_or_clear_invalid_guest_state()
64 sregs.tr.unusable = !!set; in set_or_clear_invalid_guest_state()
65 vcpu_sregs_set(vcpu, &sregs); in set_or_clear_invalid_guest_state()
Dcr4_cpuid_sync_test.c55 struct kvm_sregs sregs; in main() local
77 vcpu_sregs_get(vcpu, &sregs); in main()
78 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
79 vcpu_sregs_set(vcpu, &sregs); in main()
/linux-6.1.9/arch/powerpc/kvm/
De500.c362 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 …]
De500mc.c215 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 …]
Dbooke.c1501 struct kvm_sregs *sregs) in get_sregs_base() argument
1505 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base()
1507 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base()
1508 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base()
1509 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base()
1510 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base()
1511 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base()
1512 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base()
1513 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base()
1514 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base()
[all …]
De500_mmu.c567 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 …]
Dbook3s_pr.c1461 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument
1466 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1468 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1471 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1472 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1476 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr()
1479 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1480 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1488 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument
1493 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr()
[all …]
/linux-6.1.9/drivers/net/ethernet/seeq/
Dsgiseeq.c100 struct sgiseeq_regs *sregs; member
137 struct sgiseeq_regs *sregs) in reset_hpc3_and_seeq() argument
148 struct sgiseeq_regs *sregs) in seeq_go() argument
150 sregs->rstat = sp->mode | RSTAT_GO_BITS; in seeq_go()
157 struct sgiseeq_regs *sregs = sp->sregs; in __sgiseeq_set_mac_address() local
160 sregs->tstat = SEEQ_TCMD_RB0; in __sgiseeq_set_mac_address()
162 sregs->rw.eth_addr[i] = dev->dev_addr[i]; in __sgiseeq_set_mac_address()
292 struct sgiseeq_regs *sregs) in init_seeq() argument
297 reset_hpc3_and_seeq(hregs, sregs); in init_seeq()
304 sregs->tstat = TSTAT_INIT_EDLC; in init_seeq()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c72 static void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent) in sregs_dump() argument
77 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump()
79 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump()
81 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump()
83 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump()
85 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump()
87 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump()
89 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump()
91 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump()
94 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dresets.c88 struct kvm_sregs sregs; in assert_clear() local
95 vcpu_sregs_get(vcpu, &sregs); in assert_clear()
96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
132 struct kvm_sregs sregs; in assert_initial() local
136 vcpu_sregs_get(vcpu, &sregs); in assert_initial()
137 TEST_ASSERT(sregs.crs[0] == 0xE0UL, "cr0 == 0xE0 (KVM_GET_SREGS)"); in assert_initial()
138 TEST_ASSERT(sregs.crs[14] == 0xC2000000UL, in assert_initial()
140 TEST_ASSERT(!memcmp(&sregs.crs[1], regs_null, sizeof(sregs.crs[1]) * 12), in assert_initial()
142 TEST_ASSERT(sregs.crs[15] == 0, "cr15 == 0 (KVM_GET_SREGS)"); in assert_initial()
Dsync_regs_test.c121 struct kvm_sregs sregs; in test_req_and_verify_all_valid_regs() local
143 vcpu_sregs_get(vcpu, &sregs); in test_req_and_verify_all_valid_regs()
144 compare_sregs(&sregs, &run->s.regs); in test_req_and_verify_all_valid_regs()
150 struct kvm_sregs sregs; in test_set_and_verify_various_reg_values() local
185 vcpu_sregs_get(vcpu, &sregs); in test_set_and_verify_various_reg_values()
186 compare_sregs(&sregs, &run->s.regs); in test_set_and_verify_various_reg_values()
/linux-6.1.9/Documentation/devicetree/bindings/arm/calxeda/
Dhb-sregs.yaml4 $id: http://devicetree.org/schemas/arm/calxeda/hb-sregs.yaml#
19 const: calxeda,hb-sregs
35 sregs@fff3c000 {
36 compatible = "calxeda,hb-sregs";
Dl2ecc.yaml19 const: "calxeda,hb-sregs-l2-ecc"
38 sregs@fff3c200 {
39 compatible = "calxeda,hb-sregs-l2-ecc";
/linux-6.1.9/drivers/spi/
Dspi-intel.c162 void __iomem *sregs; member
216 if (ispi->sregs) { in intel_spi_dump_regs()
217 value = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_dump_regs()
220 readl(ispi->sregs + PREOP_OPTYPE)); in intel_spi_dump_regs()
222 readl(ispi->sregs + OPMENU0)); in intel_spi_dump_regs()
224 readl(ispi->sregs + OPMENU1)); in intel_spi_dump_regs()
321 return readl_poll_timeout(ispi->sregs + SSFSTS_CTL, val, in intel_spi_wait_sw_busy()
348 writel(opcode, ispi->sregs + OPMENU0); in intel_spi_opcode_index()
349 preop = readw(ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index()
350 writel(optype << 16 | preop, ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index()
[all …]
/linux-6.1.9/arch/s390/kernel/
Dsignal.c68 _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, &regs->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(&regs->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()
Dcompat_signal.c40 _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()
/linux-6.1.9/drivers/soc/fsl/qe/
Dgpio.c246 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated() local
257 sregs->cpdir2 & mask2); in qe_pin_set_dedicated()
259 sregs->cppar2 & mask2); in qe_pin_set_dedicated()
262 sregs->cpdir1 & mask2); in qe_pin_set_dedicated()
264 sregs->cppar1 & mask2); in qe_pin_set_dedicated()
267 if (sregs->cpdata & mask1) in qe_pin_set_dedicated()
273 qe_clrsetbits_be32(&regs->cpodr, mask1, sregs->cpodr & mask1); in qe_pin_set_dedicated()
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c163 struct kvm_sregs sregs; in vm_arch_vcpu_add() local
180 vcpu_sregs_get(vcpu, &sregs); in vm_arch_vcpu_add()
181 sregs.crs[0] |= 0x00040000; /* Enable floating point regs */ in vm_arch_vcpu_add()
182 sregs.crs[1] = vm->pgd | 0xf; /* Primary region table */ in vm_arch_vcpu_add()
183 vcpu_sregs_set(vcpu, &sregs); in vm_arch_vcpu_add()
/linux-6.1.9/Documentation/devicetree/bindings/clock/
Dcalxeda.yaml13 "hb-sregs" node.
45 sregs@3fffc000 {
46 compatible = "calxeda,hb-sregs";
/linux-6.1.9/tools/testing/selftests/kvm/
Dmax_guest_memory_test.c65 struct kvm_sregs sregs; in vcpu_worker() local
77 vcpu_sregs_get(vcpu, &sregs); in vcpu_worker()
80 sregs.cr0 ^= X86_CR0_WP; in vcpu_worker()
82 vcpu_sregs_set(vcpu, &sregs); in vcpu_worker()
/linux-6.1.9/arch/arm/boot/dts/
Dhighbank.dts149 sregs@fff3c200 {
150 compatible = "calxeda,hb-sregs-l2-ecc";
/linux-6.1.9/arch/mips/sgi-ip30/
Dip30-console.c12 return &ioc3->sregs.uarta; in console_uart()

12