/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | set_sregs_test.c | 33 memcpy(&new, &orig, sizeof(sregs)); \ 41 TEST_ASSERT(!memcmp(&new, &orig, sizeof(new)), "KVM modified sregs"); \ 77 struct kvm_sregs sregs; in main() local 91 vcpu_sregs_get(vcpu, &sregs); in main() 93 sregs.cr0 = 0; in main() 94 sregs.cr4 |= calc_supported_cr4_feature_bits(); in main() 95 cr4 = sregs.cr4; in main() 97 rc = _vcpu_sregs_set(vcpu, &sregs); in main() 100 vcpu_sregs_get(vcpu, &sregs); in main() 101 TEST_ASSERT(sregs.cr4 == cr4, "sregs.CR4 (0x%llx) != CR4 (0x%lx)", in main() [all …]
|
D | sync_regs_test.c | 132 * Toggle CR4.PAE while KVM is processing SREGS, EFER.LME=1 with CR4.PAE=0 is 138 __u64 *cr4 = &run->s.regs.sregs.cr4; in race_sregs_cr4() 178 TEST_ASSERT((run->s.regs.sregs.cr4 & X86_CR4_PAE) && in race_sync_regs() 179 (run->s.regs.sregs.efer & EFER_LME), in race_sync_regs() 181 !!(run->s.regs.sregs.cr4 & X86_CR4_PAE), in race_sync_regs() 182 !!(run->s.regs.sregs.efer & EFER_LME)); in race_sync_regs() 254 struct kvm_sregs sregs; in KVM_ONE_VCPU_TEST() local 266 vcpu_sregs_get(vcpu, &sregs); in KVM_ONE_VCPU_TEST() 267 compare_sregs(&sregs, &run->s.regs.sregs); in KVM_ONE_VCPU_TEST() 277 struct kvm_sregs sregs; in KVM_ONE_VCPU_TEST() local [all …]
|
D | vmx_invalid_nested_guest_state.c | 56 struct kvm_sregs sregs; in main() local 88 memset(&sregs, 0, sizeof(sregs)); in main() 89 vcpu_sregs_get(vcpu, &sregs); in main() 90 sregs.tr.unusable = 1; in main() 91 vcpu_sregs_set(vcpu, &sregs); in main()
|
D | cr4_cpuid_sync_test.c | 54 struct kvm_sregs sregs; in main() local 68 vcpu_sregs_get(vcpu, &sregs); in main() 69 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main() 70 vcpu_sregs_set(vcpu, &sregs); in main()
|
D | vmx_exception_with_invalid_guest_state.c | 58 static struct kvm_sregs sregs; in set_or_clear_invalid_guest_state() local 60 if (!sregs.cr0) in set_or_clear_invalid_guest_state() 61 vcpu_sregs_get(vcpu, &sregs); in set_or_clear_invalid_guest_state() 62 sregs.tr.unusable = !!set; in set_or_clear_invalid_guest_state() 63 vcpu_sregs_set(vcpu, &sregs); in set_or_clear_invalid_guest_state()
|
D | sev_smoke_test.c | 73 struct kvm_sregs sregs; in test_sync_vmsa() local 87 vcpu_sregs_get(vcpu, &sregs); in test_sync_vmsa() 88 sregs.cr4 |= X86_CR4_OSFXSR | X86_CR4_OSXSAVE; in test_sync_vmsa() 89 vcpu_sregs_set(vcpu, &sregs); in test_sync_vmsa()
|
/linux-6.12.1/arch/powerpc/kvm/ |
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.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 | 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 …]
|
/linux-6.12.1/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 100 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.12.1/arch/m68k/ifpsp060/src/ |
D | itest.S | 30 set SREGS, -64 180 movm.l &0x7fff,SREGS(%a6) 204 movm.l &0x7fff,SREGS(%a6) 227 movm.l &0x7fff,SREGS(%a6) 250 movm.l &0x7fff,SREGS(%a6) 274 movm.l &0x7fff,SREGS(%a6) 298 movm.l &0x7fff,SREGS(%a6) 322 movm.l &0x7fff,SREGS(%a6) 346 movm.l &0x7fff,SREGS(%a6) 370 movm.l &0x7fff,SREGS(%a6) [all …]
|
D | ftest.S | 30 set SREGS, -64 257 movm.l &0x7fff,SREGS(%a6) 297 movm.l &0x7fff,SREGS(%a6) 334 movm.l &0x7fff,SREGS(%a6) 374 movm.l &0x7fff,SREGS(%a6) 410 movm.l &0x7fff,SREGS(%a6) 446 movm.l &0x7fff,SREGS(%a6) 489 movm.l &0x7fff,SREGS(%a6) 525 movm.l &0x7fff,SREGS(%a6) 560 movm.l &0x7fff,SREGS(%a6) [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 77 static void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent) in sregs_dump() argument 82 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump() 84 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump() 86 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump() 88 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump() 90 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump() 92 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump() 94 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump() 96 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump() 99 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/s390x/ |
D | resets.c | 88 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()
|
D | sync_regs_test.c | 119 struct kvm_sregs sregs; in test_req_and_verify_all_valid_regs() local 138 vcpu_sregs_get(vcpu, &sregs); in test_req_and_verify_all_valid_regs() 139 compare_sregs(&sregs, &run->s.regs); in test_req_and_verify_all_valid_regs() 145 struct kvm_sregs sregs; in test_set_and_verify_various_reg_values() local 177 vcpu_sregs_get(vcpu, &sregs); in test_set_and_verify_various_reg_values() 178 compare_sregs(&sregs, &run->s.regs); in test_set_and_verify_various_reg_values()
|
/linux-6.12.1/Documentation/devicetree/bindings/arm/calxeda/ |
D | hb-sregs.yaml | 4 $id: http://devicetree.org/schemas/arm/calxeda/hb-sregs.yaml# 19 const: calxeda,hb-sregs 35 sregs@fff3c000 { 36 compatible = "calxeda,hb-sregs";
|
D | l2ecc.yaml | 19 const: calxeda,hb-sregs-l2-ecc 38 sregs@fff3c200 { 39 compatible = "calxeda,hb-sregs-l2-ecc";
|
/linux-6.12.1/drivers/spi/ |
D | spi-intel.c | 68 /* Offsets are from @ispi->sregs */ 145 * @sregs: Start of software sequencer registers 163 void __iomem *sregs; member 217 if (ispi->sregs) { in intel_spi_dump_regs() 218 value = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_dump_regs() 221 readl(ispi->sregs + PREOP_OPTYPE)); in intel_spi_dump_regs() 223 readl(ispi->sregs + OPMENU0)); in intel_spi_dump_regs() 225 readl(ispi->sregs + OPMENU1)); in intel_spi_dump_regs() 322 return readl_poll_timeout(ispi->sregs + SSFSTS_CTL, val, in intel_spi_wait_sw_busy() 349 writel(opcode, ispi->sregs + OPMENU0); in intel_spi_opcode_index() [all …]
|
/linux-6.12.1/drivers/soc/fsl/qe/ |
D | gpio.c | 239 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated() local 250 sregs->cpdir2 & mask2); in qe_pin_set_dedicated() 252 sregs->cppar2 & mask2); in qe_pin_set_dedicated() 255 sregs->cpdir1 & mask2); in qe_pin_set_dedicated() 257 sregs->cppar1 & mask2); in qe_pin_set_dedicated() 260 if (sregs->cpdata & mask1) in qe_pin_set_dedicated() 266 qe_clrsetbits_be32(®s->cpodr, mask1, sregs->cpodr & mask1); in qe_pin_set_dedicated()
|
/linux-6.12.1/Documentation/devicetree/bindings/clock/ |
D | calxeda.yaml | 13 "hb-sregs" node. 45 sregs@3fffc000 { 46 compatible = "calxeda,hb-sregs";
|
/linux-6.12.1/arch/s390/kernel/ |
D | compat_signal.c | 41 _sigregs32 sregs; member 68 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 83 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 88 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 96 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 188 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 280 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32() 287 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
D | signal.c | 69 _sigregs sregs; member 122 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument 131 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 135 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 140 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument 147 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()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 168 struct kvm_sregs sregs; in vm_arch_vcpu_add() local 185 vcpu_sregs_get(vcpu, &sregs); in vm_arch_vcpu_add() 186 sregs.crs[0] |= 0x00040000; /* Enable floating point regs */ in vm_arch_vcpu_add() 187 sregs.crs[1] = vm->pgd | 0xf; /* Primary region table */ in vm_arch_vcpu_add() 188 vcpu_sregs_set(vcpu, &sregs); in vm_arch_vcpu_add()
|
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | max_guest_memory_test.c | 65 struct kvm_sregs sregs; in vcpu_worker() local 73 vcpu_sregs_get(vcpu, &sregs); in vcpu_worker() 76 sregs.cr0 ^= X86_CR0_WP; in vcpu_worker() 78 vcpu_sregs_set(vcpu, &sregs); in vcpu_worker()
|