Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311740 | 17.0.9 | Fei Yang | P4 | Resolved | Fixed | b01 |
There are some reports of the OpenJDK RISC-V port crashing on Linux 5.18+ with QEMU-system 7.10+
when sv57 was enabled [2][3] as currently RISC-V port only supports up to sv48.
As discussed in [3], given the fact that there are no existing boards or hardware even support anything more than sv48,
we decide to add detection for SATP (Supervisor Address Translation and Protection) mode at JVM startup time
if possible and explicitly issue a warning and stop early when sv57 is enabled.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa5b537b0ecc16992577b013f11112d54c7ce869
[2] https://mail.openjdk.org/pipermail/riscv-port-dev/2022-September/000639.html
[3] https://mail.openjdk.org/pipermail/riscv-port-dev/2022-November/000681.html
- backported by
-
JDK-8311740 RISC-V: Add support for SATP mode detection
- Resolved
- relates to
-
JDK-8301067 RISC-V: better error message when reporting unsupported satp modes
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/966fc82d
-
Commit openjdk/jdk/f49acd52
-
Commit openjdk/riscv-port-jdk11u/e14708aa
-
Commit openjdk/riscv-port-jdk17u/14226043
-
Review openjdk/jdk17u-dev/1427
-
Review openjdk/jdk/11388
-
Review openjdk/riscv-port-jdk11u/19
-
Review openjdk/riscv-port-jdk17u/53