All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/17]  RISC-V: Update the Hypervisor spec to v0.6.1
@ 2020-06-05  1:20 ` Alistair Francis
  0 siblings, 0 replies; 44+ messages in thread
From: Alistair Francis @ 2020-06-05  1:20 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: alistair.francis, anup.pate, palmer, alistair23

From: Alistair Francis <alistair@alistair23.me>

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.

v2:
 - Update to v0.6.1



Alistair Francis (17):
  target/riscv: Set access as data_load when validating stage-2 PTEs
  target/riscv: Report errors validating 2nd-stage PTEs
  target/riscv: Move the hfence instructions to the rvh decode
  target/riscv: Implement checks for hfence
  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                         |   9 +
 target/riscv/insn32-64.decode                 |   5 +
 target/riscv/insn32.decode                    |  19 +-
 target/riscv/cpu_helper.c                     | 114 +++---
 target/riscv/csr.c                            | 171 ++++++--
 .../riscv/insn_trans/trans_privileged.inc.c   |  38 --
 target/riscv/insn_trans/trans_rvh.inc.c       | 377 ++++++++++++++++++
 target/riscv/op_helper.c                      | 189 ++++++++-
 target/riscv/translate.c                      |  11 +-
 11 files changed, 815 insertions(+), 145 deletions(-)
 create mode 100644 target/riscv/insn_trans/trans_rvh.inc.c

-- 
2.26.2



^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2020-06-05 17:55 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05  1:20 [PATCH v2 00/17] RISC-V: Update the Hypervisor spec to v0.6.1 Alistair Francis
2020-06-05  1:20 ` Alistair Francis
2020-06-05  1:20 ` [PATCH v2 01/17] target/riscv: Set access as data_load when validating stage-2 PTEs Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05 17:49   ` Richard Henderson
2020-06-05 17:49     ` Richard Henderson
2020-06-05  1:20 ` [PATCH v2 02/17] target/riscv: Report errors validating 2nd-stage PTEs Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05 17:50   ` Richard Henderson
2020-06-05 17:50     ` Richard Henderson
2020-06-05  1:20 ` [PATCH v2 03/17] target/riscv: Move the hfence instructions to the rvh decode Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05 17:52   ` Richard Henderson
2020-06-05 17:52     ` Richard Henderson
2020-06-05  1:20 ` [PATCH v2 04/17] target/riscv: Implement checks for hfence Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05 17:54   ` Richard Henderson
2020-06-05 17:54     ` Richard Henderson
2020-06-05  1:20 ` [PATCH v2 05/17] target/riscv: Allow setting a two-stage lookup in the virt status Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05  1:20 ` [PATCH v2 06/17] target/riscv: Allow generating hlv/hlvx/hsv instructions Alistair Francis
2020-06-05  1:20   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 07/17] target/riscv: Do two-stage lookups on " Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 08/17] target/riscv: Don't allow guest to write to htinst Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 09/17] target/riscv: Convert MSTATUS MTL to GVA Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 10/17] target/riscv: Fix the interrupt cause code Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 11/17] target/riscv: Update the Hypervisor trap return/entry Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 12/17] target/riscv: Update the CSRs to the v0.6 Hyp extension Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 13/17] target/riscv: Only support a single VSXL length Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 14/17] target/riscv: Only support little endian guests Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 15/17] target/riscv: Support the v0.6 Hypervisor extension CRSs Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 16/17] target/riscv: Return the exception from invalid CSR accesses Alistair Francis
2020-06-05  1:21   ` Alistair Francis
2020-06-05  1:21 ` [PATCH v2 17/17] target/riscv: Support the Virtual Instruction fault Alistair Francis
2020-06-05  1:21   ` Alistair Francis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.