* [PULL 0/3] riscv-to-apply queue
@ 2025-03-28 6:53 Alistair Francis
2025-03-28 6:53 ` [PULL 1/3] docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file Alistair Francis
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Alistair Francis @ 2025-03-28 6:53 UTC (permalink / raw)
To: qemu-devel; +Cc: alistair23, Alistair Francis
The following changes since commit b876e721f1c939f3e83ac85bd3c1c2821e12b3fa:
Update version for v10.0.0-rc1 release (2025-03-25 13:58:14 -0400)
are available in the Git repository at:
https://github.com/alistair23/qemu.git tags/pull-riscv-to-apply-20250328
for you to fetch changes up to 897c68fb795cf03b89b6688a6f945d68a765c3e4:
Revert "target/riscv/kvm: add missing KVM CSRs" (2025-03-28 16:50:25 +1000)
----------------------------------------------------------------
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
----------------------------------------------------------------
Daniel Henrique Barboza (1):
Revert "target/riscv/kvm: add missing KVM CSRs"
hemanshu.khilari.foss (2):
docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file.
docs/specs/riscv-iommu: Fixed broken link to external risv iommu document
MAINTAINERS | 1 +
docs/specs/riscv-iommu.rst | 6 +++---
target/riscv/kvm/kvm-cpu.c | 6 ------
3 files changed, 4 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PULL 1/3] docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file.
2025-03-28 6:53 [PULL 0/3] riscv-to-apply queue Alistair Francis
@ 2025-03-28 6:53 ` Alistair Francis
2025-03-28 6:53 ` [PULL 2/3] docs/specs/riscv-iommu: Fixed broken link to external risv iommu document Alistair Francis
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Alistair Francis @ 2025-03-28 6:53 UTC (permalink / raw)
To: qemu-devel; +Cc: alistair23, hemanshu.khilari.foss, Alistair Francis
From: "hemanshu.khilari.foss" <hemanshu.khilari.foss@gmail.com>
Added docs/specs/riscv-iommu.rst under `RISC-V TCG CPUs` section in
in MAINTAINERS file since
`scripts/get_maintainer.pl -f docs/specs/riscv-iommu.rst` doesn't list any
maintainers.
Signed-off-by: hemanshu.khilari.foss <hemanshu.khilari.foss@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250323140151.9994-1-hemanshu.khilari.foss@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 8f470a1c9b..27f2cfd833 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -319,6 +319,7 @@ L: qemu-riscv@nongnu.org
S: Supported
F: configs/targets/riscv*
F: docs/system/target-riscv.rst
+F: docs/specs/riscv-iommu.rst
F: target/riscv/
F: hw/char/riscv_htif.c
F: hw/riscv/
--
2.48.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL 2/3] docs/specs/riscv-iommu: Fixed broken link to external risv iommu document
2025-03-28 6:53 [PULL 0/3] riscv-to-apply queue Alistair Francis
2025-03-28 6:53 ` [PULL 1/3] docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file Alistair Francis
@ 2025-03-28 6:53 ` Alistair Francis
2025-03-28 6:53 ` [PULL 3/3] Revert "target/riscv/kvm: add missing KVM CSRs" Alistair Francis
2025-03-28 16:36 ` [PULL 0/3] riscv-to-apply queue Stefan Hajnoczi
3 siblings, 0 replies; 5+ messages in thread
From: Alistair Francis @ 2025-03-28 6:53 UTC (permalink / raw)
To: qemu-devel
Cc: alistair23, hemanshu.khilari.foss, qemu-stable, qemu-riscv,
Alistair Francis
From: "hemanshu.khilari.foss" <hemanshu.khilari.foss@gmail.com>
The links to riscv iommu specification document are incorrect. This patch
updates all the said link to point to correct location.
Cc: qemu-stable@nongnu.org
Cc: qemu-riscv@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2808
Signed-off-by: hemanshu.khilari.foss <hemanshu.khilari.foss@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250323063404.13206-1-hemanshu.khilari.foss@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
docs/specs/riscv-iommu.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/specs/riscv-iommu.rst b/docs/specs/riscv-iommu.rst
index 000c7e1f57..991d376fdc 100644
--- a/docs/specs/riscv-iommu.rst
+++ b/docs/specs/riscv-iommu.rst
@@ -4,7 +4,7 @@ RISC-V IOMMU support for RISC-V machines
========================================
QEMU implements a RISC-V IOMMU emulation based on the RISC-V IOMMU spec
-version 1.0 `iommu1.0`_.
+version 1.0 `iommu1.0.0`_.
The emulation includes a PCI reference device (riscv-iommu-pci) and a platform
bus device (riscv-iommu-sys) that QEMU RISC-V boards can use. The 'virt'
@@ -14,7 +14,7 @@ riscv-iommu-pci reference device
--------------------------------
This device implements the RISC-V IOMMU emulation as recommended by the section
-"Integrating an IOMMU as a PCIe device" of `iommu1.0`_: a PCI device with base
+"Integrating an IOMMU as a PCIe device" of `iommu1.0.0`_: a PCI device with base
class 08h, sub-class 06h and programming interface 00h.
As a reference device it doesn't implement anything outside of the specification,
@@ -109,7 +109,7 @@ riscv-iommu options:
- "s-stage": enabled
- "g-stage": enabled
-.. _iommu1.0: https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0/riscv-iommu.pdf
+.. _iommu1.0.0: https://github.com/riscv-non-isa/riscv-iommu/releases/download/v1.0.0/riscv-iommu.pdf
.. _linux-v8: https://lore.kernel.org/linux-riscv/cover.1718388908.git.tjeznach@rivosinc.com/
--
2.48.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL 3/3] Revert "target/riscv/kvm: add missing KVM CSRs"
2025-03-28 6:53 [PULL 0/3] riscv-to-apply queue Alistair Francis
2025-03-28 6:53 ` [PULL 1/3] docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file Alistair Francis
2025-03-28 6:53 ` [PULL 2/3] docs/specs/riscv-iommu: Fixed broken link to external risv iommu document Alistair Francis
@ 2025-03-28 6:53 ` Alistair Francis
2025-03-28 16:36 ` [PULL 0/3] riscv-to-apply queue Stefan Hajnoczi
3 siblings, 0 replies; 5+ messages in thread
From: Alistair Francis @ 2025-03-28 6:53 UTC (permalink / raw)
To: qemu-devel
Cc: alistair23, Daniel Henrique Barboza, Andrea Bolognani,
Alistair Francis
From: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
This commit breaks KVM boot on older kernels, like reported in [1], due
to senvcfg not being available in them.
There's also another problem related to scounteren. Using a recent
enough guest buildroot, 'ping' will be build with rdtime support. In
this case, doing a ping in a KVM guest while exposing scounteren will
result in an error. The root cause relates to how KVM handles
scounteren, but QEMU can work around it by initializing scounteren with
the host value during init().
Fixing these issues in a non-rushed-bandaid manner results in an amount
of design changes that I don't feel comfortable pushing during code
freeze, so for 10.0 we'll remove the CSRs and re-introduce them in 10.1
with the adequate support.
This reverts commit 4db19d5b21e058e6eb3474b6be470d1184afaa9e.
[1] https://lore.kernel.org/qemu-riscv/CABJz62OfUDHYkQ0T3rGHStQprf1c7_E0qBLbLKhfv=+jb0SYAw@mail.gmail.com/
Reported-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20250327152052.707657-1-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
target/riscv/kvm/kvm-cpu.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c
index 4ffeeaa1c9..0f4997a918 100644
--- a/target/riscv/kvm/kvm-cpu.c
+++ b/target/riscv/kvm/kvm-cpu.c
@@ -624,8 +624,6 @@ static void kvm_riscv_reset_regs_csr(CPURISCVState *env)
env->stval = 0;
env->mip = 0;
env->satp = 0;
- env->scounteren = 0;
- env->senvcfg = 0;
}
static int kvm_riscv_get_regs_csr(CPUState *cs)
@@ -641,8 +639,6 @@ static int kvm_riscv_get_regs_csr(CPUState *cs)
KVM_RISCV_GET_CSR(cs, env, stval, env->stval);
KVM_RISCV_GET_CSR(cs, env, sip, env->mip);
KVM_RISCV_GET_CSR(cs, env, satp, env->satp);
- KVM_RISCV_GET_CSR(cs, env, scounteren, env->scounteren);
- KVM_RISCV_GET_CSR(cs, env, senvcfg, env->senvcfg);
return 0;
}
@@ -660,8 +656,6 @@ static int kvm_riscv_put_regs_csr(CPUState *cs)
KVM_RISCV_SET_CSR(cs, env, stval, env->stval);
KVM_RISCV_SET_CSR(cs, env, sip, env->mip);
KVM_RISCV_SET_CSR(cs, env, satp, env->satp);
- KVM_RISCV_SET_CSR(cs, env, scounteren, env->scounteren);
- KVM_RISCV_SET_CSR(cs, env, senvcfg, env->senvcfg);
return 0;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PULL 0/3] riscv-to-apply queue
2025-03-28 6:53 [PULL 0/3] riscv-to-apply queue Alistair Francis
` (2 preceding siblings ...)
2025-03-28 6:53 ` [PULL 3/3] Revert "target/riscv/kvm: add missing KVM CSRs" Alistair Francis
@ 2025-03-28 16:36 ` Stefan Hajnoczi
3 siblings, 0 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2025-03-28 16:36 UTC (permalink / raw)
To: Alistair Francis; +Cc: qemu-devel, alistair23, Alistair Francis
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.0 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-28 19:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28 6:53 [PULL 0/3] riscv-to-apply queue Alistair Francis
2025-03-28 6:53 ` [PULL 1/3] docs: Added docs/specs/riscv-iommu.rst in MAINTAINERS file Alistair Francis
2025-03-28 6:53 ` [PULL 2/3] docs/specs/riscv-iommu: Fixed broken link to external risv iommu document Alistair Francis
2025-03-28 6:53 ` [PULL 3/3] Revert "target/riscv/kvm: add missing KVM CSRs" Alistair Francis
2025-03-28 16:36 ` [PULL 0/3] riscv-to-apply queue Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).