Skip to content

Commit 0f15892

Browse files
committed
Merge tag 'pull-riscv-to-apply-20250328' of https://github.com/alistair23/qemu into staging
Fifth RISC-V PR for 10.0 * Add docs/specs/riscv-iommu.rst to MAINTAINERS * Fix broken link to external risv iommu document * Revert scounteren and senvcfg to fixup older kernel boots # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmfmR0UACgkQr3yVEwxT # gBOdqw/9GeSsIO4DDQ9Zu6C+v4pj9SXuvdpJrO0JBKXdrhp3OH9kVVR5nGvGA1pt # S155AhH8D/pjpMM1exYfBylqTB+CiwjCZnvakvlxx8FkBuDQ/xPBEoPz00TAFAli # 93TDys83HJWk0UDXCCr8Ch7VhaEX07IyFNFz9TQiNNm0zsK4DRtfmYgGQ+RbkIny # 9PxZf6Dz1vfASXGu66EMA1CFaFzXXpxQZtx39OKwfJ4tRj8J/jUFvUtPnP4/sOxH # lyGKIgOfBaSW2AenCoYjPGlRbbdET2YG+IMiqvo5Ie94lZASA6g/8p6zZaBH0RIC # eUNJM7QjimZAIhzhS9xr/Jz/JGY/aeHgVcyPzWVMSty1Qa3a1hsuD/2UFxXadelL # 2QGcVRn2o/3GqgjL+8s7A4c79vjQ8kRSI2GqSaUJ5PGdq/xHC6+f08VfqoZZRWEE # YtzaPh96f6MZT0UdIqCLAG7UfUpYySabzMyYSop7Wqy+O4/bMK2LFtA4IDpomdha # +ZSvCYYarvBDWaTYcbeX2hRnRoF0H5HVK3GYgt088mp4qL+6hM5oxMS2AK/iMuEi # rW2TVk8CfwvGGgLXVj/fmMJ6P6XaIPvo0mvJ2Er67aQFXN+o2IzDqtIH9VUjJFhr # EKiPq0RpX2BBeoi6vtU1Qf2kUj3GHPENACvErC8BlgyywXReb74= # =Xno2 # -----END PGP SIGNATURE----- # gpg: Signature made Fri 28 Mar 2025 02:52:53 EDT # gpg: using RSA key 6AE902B6A7CA877D6D659296AF7C95130C538013 # gpg: Good signature from "Alistair Francis <[email protected]>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 6AE9 02B6 A7CA 877D 6D65 9296 AF7C 9513 0C53 8013 * tag 'pull-riscv-to-apply-20250328' of https://github.com/alistair23/qemu: Revert "target/riscv/kvm: add missing KVM CSRs" docs/specs/riscv-iommu: Fixed broken link to external risv iommu document docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file. Signed-off-by: Stefan Hajnoczi <[email protected]>
2 parents 911a444 + 897c68f commit 0f15892

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ L: [email protected]
319319
S: Supported
320320
F: configs/targets/riscv*
321321
F: docs/system/target-riscv.rst
322+
F: docs/specs/riscv-iommu.rst
322323
F: target/riscv/
323324
F: hw/char/riscv_htif.c
324325
F: hw/riscv/

docs/specs/riscv-iommu.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RISC-V IOMMU support for RISC-V machines
44
========================================
55

66
QEMU implements a RISC-V IOMMU emulation based on the RISC-V IOMMU spec
7-
version 1.0 `iommu1.0`_.
7+
version 1.0 `iommu1.0.0`_.
88

99
The emulation includes a PCI reference device (riscv-iommu-pci) and a platform
1010
bus device (riscv-iommu-sys) that QEMU RISC-V boards can use. The 'virt'
@@ -14,7 +14,7 @@ riscv-iommu-pci reference device
1414
--------------------------------
1515

1616
This device implements the RISC-V IOMMU emulation as recommended by the section
17-
"Integrating an IOMMU as a PCIe device" of `iommu1.0`_: a PCI device with base
17+
"Integrating an IOMMU as a PCIe device" of `iommu1.0.0`_: a PCI device with base
1818
class 08h, sub-class 06h and programming interface 00h.
1919

2020
As a reference device it doesn't implement anything outside of the specification,
@@ -109,7 +109,7 @@ riscv-iommu options:
109109
- "s-stage": enabled
110110
- "g-stage": enabled
111111

112-
.. _iommu1.0: https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0/riscv-iommu.pdf
112+
.. _iommu1.0.0: https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0.0/riscv-iommu.pdf
113113

114114
.. _linux-v8: https://lore.kernel.org/linux-riscv/[email protected]/
115115

target/riscv/kvm/kvm-cpu.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,6 @@ static void kvm_riscv_reset_regs_csr(CPURISCVState *env)
624624
env->stval = 0;
625625
env->mip = 0;
626626
env->satp = 0;
627-
env->scounteren = 0;
628-
env->senvcfg = 0;
629627
}
630628

631629
static int kvm_riscv_get_regs_csr(CPUState *cs)
@@ -641,8 +639,6 @@ static int kvm_riscv_get_regs_csr(CPUState *cs)
641639
KVM_RISCV_GET_CSR(cs, env, stval, env->stval);
642640
KVM_RISCV_GET_CSR(cs, env, sip, env->mip);
643641
KVM_RISCV_GET_CSR(cs, env, satp, env->satp);
644-
KVM_RISCV_GET_CSR(cs, env, scounteren, env->scounteren);
645-
KVM_RISCV_GET_CSR(cs, env, senvcfg, env->senvcfg);
646642

647643
return 0;
648644
}
@@ -660,8 +656,6 @@ static int kvm_riscv_put_regs_csr(CPUState *cs)
660656
KVM_RISCV_SET_CSR(cs, env, stval, env->stval);
661657
KVM_RISCV_SET_CSR(cs, env, sip, env->mip);
662658
KVM_RISCV_SET_CSR(cs, env, satp, env->satp);
663-
KVM_RISCV_SET_CSR(cs, env, scounteren, env->scounteren);
664-
KVM_RISCV_SET_CSR(cs, env, senvcfg, env->senvcfg);
665659

666660
return 0;
667661
}

0 commit comments

Comments
 (0)