qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] RISC-V TIME CSR for privileged mode
@ 2020-01-22 11:30 Anup Patel
  2020-01-22 11:30 ` [PATCH v2 1/2] target/riscv: Emulate TIME CSRs " Anup Patel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Anup Patel @ 2020-01-22 11:30 UTC (permalink / raw)
  To: Peter Maydell, Palmer Dabbelt, Alistair Francis, Sagar Karandikar
  Cc: Atish Patra, Anup Patel, qemu-riscv@nongnu.org,
	qemu-devel@nongnu.org, Anup Patel

This series adds emulation of TIME CSRs for privileged mode. With
this series, we see approximately 25+% improvement in hackbench
numbers for non-virtualized (or Host) Linux and 40+% improvement
in hackbench numbers for Guest/VM Linux.

These patches are based on mainline/alistair/riscv-hyp-ext-v0.5.1
branch of https://github.com/kvm-riscv/qemu.git and can be found
in riscv_time_csr_v2 branch of same repo.

Changes since v1:
 - Use braces for single-line if-statements

Anup Patel (2):
  target/riscv: Emulate TIME CSRs for privileged mode
  hw/riscv: Provide rdtime callback for TCG in CLINT emulation

 hw/riscv/sifive_clint.c   |  1 +
 target/riscv/cpu.h        |  5 +++
 target/riscv/cpu_helper.c |  5 +++
 target/riscv/csr.c        | 86 +++++++++++++++++++++++++++++++++++++--
 4 files changed, 93 insertions(+), 4 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2020-01-30 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-22 11:30 [PATCH v2 0/2] RISC-V TIME CSR for privileged mode Anup Patel
2020-01-22 11:30 ` [PATCH v2 1/2] target/riscv: Emulate TIME CSRs " Anup Patel
2020-01-22 11:30 ` [PATCH v2 2/2] hw/riscv: Provide rdtime callback for TCG in CLINT emulation Anup Patel
2020-01-30 14:44 ` [PATCH v2 1/2] target/riscv: Emulate TIME CSRs for privileged mode Palmer Dabbelt
2020-01-30 15:22   ` Anup Patel
2020-01-30 14:49 ` [PATCH v2 2/2] hw/riscv: Provide rdtime callback for TCG in CLINT emulation Palmer Dabbelt
2020-01-30 15:27   ` Anup Patel

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).