Skip to content

RISC-V: Update the Hypervisor spec to v0.6.1

Alistair Francis qemu-devel qemu-riscv 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 2 repliesIn review
  2. v217 patches 4 repliesSuperseded
  3. v114 of 15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on master

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13target/riscv: Allow setting a two-stage lookup in the virt statustarget/riscv/cpu.h target/riscv/cpu_bits.h target/riscv/cpu_helper.c+21 -00 replies
2/13target/riscv: Allow generating hlv/hlvx/hsv instructionstarget/riscv/cpu_bits.h target/riscv/helper.h target/riscv/insn32-64.decode +3 more+474 -00 replies
3/13target/riscv: Do two-stage lookups on hlv/hlvx/hsv instructionstarget/riscv/cpu_helper.c+25 -350 replies
4/13target/riscv: Don't allow guest to write to htinsttarget/riscv/csr.c+0 -10 replies
5/13target/riscv: Convert MSTATUS MTL to GVAtarget/riscv/cpu_bits.h target/riscv/cpu_helper.c target/riscv/csr.c+26 -90 replies
6/13target/riscv: Fix the interrupt cause codetarget/riscv/cpu_helper.c+3 -20 replies
7/13target/riscv: Update the Hypervisor trap return/entrytarget/riscv/cpu_bits.h target/riscv/cpu_helper.c target/riscv/op_helper.c +1 more+9 -260 replies
8/13target/riscv: Update the CSRs to the v0.6 Hyp extensiontarget/riscv/cpu_bits.h+8 -60 replies
9/13target/riscv: Only support a single VSXL lengthtarget/riscv/csr.c+9 -00 replies
10/13target/riscv: Only support little endian gueststarget/riscv/csr.c+5 -00 replies
11/13target/riscv: Support the v0.6 Hypervisor extension CRSstarget/riscv/cpu_bits.h target/riscv/csr.c+43 -00 replies
12/13target/riscv: Return the exception from invalid CSR accessestarget/riscv/csr.c target/riscv/op_helper.c+35 -290 replies
13/13target/riscv: Support the Virtual Instruction faulttarget/riscv/cpu_bits.h target/riscv/csr.c target/riscv/helper.h +2 more+109 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/13] RISC-V: Update the Hypervisor spec to v0.6.1

This series updates the experimental QEMU RISC-V Hypervisor spec to the v0.6.1 draft implementation.

THis includes support for the new 2-stage lookup instructions and the new CSRs.

It also includes the new 0.6.1 support for the virtual instruction fault.

This was tested by running 32-bit and 64-bit Xvisor on QEMU and starting Linux guests.

v3:
- Rebase on master
v2:
- Update to v0.6.1

Alistair Francis (13):
target/riscv: Allow setting a two-stage lookup in the virt status target/riscv: Allow generating hlv/hlvx/hsv instructions target/riscv: Do two-stage lookups on hlv/hlvx/hsv instructions target/riscv: Don't allow guest to write to htinst target/riscv: Convert MSTATUS MTL to GVA
target/riscv: Fix the interrupt cause code target/riscv: Update the Hypervisor trap return/entry target/riscv: Update the CSRs to the v0.6 Hyp extension target/riscv: Only support a single VSXL length target/riscv: Only support little endian guests target/riscv: Support the v0.6 Hypervisor extension CRSs target/riscv: Return the exception from invalid CSR accesses target/riscv: Support the Virtual Instruction fault

 target/riscv/cpu.h                      |   2 +
 target/riscv/cpu_bits.h                 |  25 +-
 target/riscv/helper.h                   |   4 +
 target/riscv/insn32-64.decode           |   5 +
 target/riscv/insn32.decode              |  11 +
 target/riscv/cpu_helper.c               | 123 +++++----
 target/riscv/csr.c                      | 171 ++++++++++--
 target/riscv/insn_trans/trans_rvh.inc.c | 342 +++++++++++++++++++++++-
 target/riscv/op_helper.c                | 176 +++++++++++-
 target/riscv/translate.c                |  10 -
 10 files changed, 761 insertions(+), 108 deletions(-)
Signature · 1 line
2.27.0