qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alistair Francis <alistair.francis@wdc.com>
To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: alistair.francis@wdc.com, palmer@dabbelt.com, alistair23@gmail.com
Subject: [PATCH v1 00/15]  RISC-V: Update the Hypervisor spec to v0.6
Date: Sun, 26 Apr 2020 09:19:11 -0700	[thread overview]
Message-ID: <cover.1587917657.git.alistair.francis@wdc.com> (raw)

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

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

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



Alistair Francis (15):
  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/cpu.h                            |   2 +
 target/riscv/cpu_bits.h                       |  19 +-
 target/riscv/cpu_helper.c                     | 114 +++---
 target/riscv/csr.c                            |  61 ++-
 target/riscv/helper.h                         |   8 +
 target/riscv/insn32-64.decode                 |   5 +
 target/riscv/insn32.decode                    |  17 +-
 .../riscv/insn_trans/trans_privileged.inc.c   |  40 --
 target/riscv/insn_trans/trans_rvh.inc.c       | 377 ++++++++++++++++++
 target/riscv/op_helper.c                      | 135 ++++++-
 target/riscv/translate.c                      |  11 +-
 11 files changed, 674 insertions(+), 115 deletions(-)
 create mode 100644 target/riscv/insn_trans/trans_rvh.inc.c

-- 
2.26.2



             reply	other threads:[~2020-04-26 16:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 16:19 Alistair Francis [this message]
2020-04-26 16:19 ` [PATCH v1 01/15] target/riscv: Set access as data_load when validating stage-2 PTEs Alistair Francis
2020-04-26 16:19 ` [PATCH v1 02/15] target/riscv: Report errors validating 2nd-stage PTEs Alistair Francis
2020-04-26 16:19 ` [PATCH v1 03/15] target/riscv: Move the hfence instructions to the rvh decode Alistair Francis
2020-04-26 16:19 ` [PATCH v1 04/15] target/riscv: Implement checks for hfence Alistair Francis
2020-04-26 16:19 ` [PATCH v1 05/15] target/riscv: Allow setting a two-stage lookup in the virt status Alistair Francis
2020-04-26 16:19 ` [PATCH v1 06/15] target/riscv: Allow generating hlv/hlvx/hsv instructions Alistair Francis
2020-04-26 16:19 ` [PATCH v1 07/15] target/riscv: Do two-stage lookups on " Alistair Francis
2020-04-26 16:19 ` [PATCH v1 08/15] target/riscv: Don't allow guest to write to htinst Alistair Francis
2020-04-26 16:19 ` [PATCH v1 09/15] target/riscv: Convert MSTATUS MTL to GVA Alistair Francis
2020-04-26 16:19 ` [PATCH v1 10/15] target/riscv: Fix the interrupt cause code Alistair Francis
2020-04-26 16:19 ` [PATCH v1 11/15] target/riscv: Update the Hypervisor trap return/entry Alistair Francis
2020-04-26 16:19 ` [PATCH v1 12/15] target/riscv: Update the CSRs to the v0.6 Hyp extension Alistair Francis
2020-04-26 16:19 ` [PATCH v1 13/15] target/riscv: Only support a single VSXL length Alistair Francis
2020-04-26 16:19 ` [PATCH v1 14/15] target/riscv: Only support little endian guests Alistair Francis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1587917657.git.alistair.francis@wdc.com \
    --to=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).