From: Anup Patel <anup.patel@wdc.com> To: Peter Maydell <peter.maydell@linaro.org>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <Alistair.Francis@wdc.com>, Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Atish Patra <atish.patra@wdc.com>, Anup Patel <anup.patel@wdc.com>, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Anup Patel <anup@brainfault.org> Subject: [PATCH v3 0/2] RISC-V TIME CSR for privileged mode Date: Sun, 2 Feb 2020 19:12:15 +0530 [thread overview] Message-ID: <20200202134217.14264-1-anup.patel@wdc.com> (raw) 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_v3 branch of same repo. Changes since v2: - Register CLINT rdtime callback only for QEMU RISC-V virt machine 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 | 6 ++- hw/riscv/sifive_e.c | 2 +- hw/riscv/sifive_u.c | 2 +- hw/riscv/spike.c | 9 ++-- hw/riscv/virt.c | 2 +- include/hw/riscv/sifive_clint.h | 3 +- target/riscv/cpu.h | 5 ++ target/riscv/cpu_helper.c | 5 ++ target/riscv/csr.c | 86 +++++++++++++++++++++++++++++++-- 9 files changed, 108 insertions(+), 12 deletions(-) -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Anup Patel <anup.patel@wdc.com> To: Peter Maydell <peter.maydell@linaro.org>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <Alistair.Francis@wdc.com>, Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Atish Patra <atish.patra@wdc.com>, Anup Patel <anup@brainfault.org>, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Anup Patel <anup.patel@wdc.com> Subject: [PATCH v3 0/2] RISC-V TIME CSR for privileged mode Date: Sun, 2 Feb 2020 19:12:15 +0530 [thread overview] Message-ID: <20200202134217.14264-1-anup.patel@wdc.com> (raw) 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_v3 branch of same repo. Changes since v2: - Register CLINT rdtime callback only for QEMU RISC-V virt machine 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 | 6 ++- hw/riscv/sifive_e.c | 2 +- hw/riscv/sifive_u.c | 2 +- hw/riscv/spike.c | 9 ++-- hw/riscv/virt.c | 2 +- include/hw/riscv/sifive_clint.h | 3 +- target/riscv/cpu.h | 5 ++ target/riscv/cpu_helper.c | 5 ++ target/riscv/csr.c | 86 +++++++++++++++++++++++++++++++-- 9 files changed, 108 insertions(+), 12 deletions(-) -- 2.17.1
next reply other threads:[~2020-02-02 13:43 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-02 13:42 Anup Patel [this message] 2020-02-02 13:42 ` [PATCH v3 0/2] RISC-V TIME CSR for privileged mode Anup Patel 2020-02-02 13:42 ` [PATCH v3 1/2] target/riscv: Emulate TIME CSRs " Anup Patel 2020-02-02 13:42 ` Anup Patel 2020-03-01 8:22 ` Bin Meng 2020-03-01 8:22 ` Bin Meng 2020-02-02 13:42 ` [PATCH v3 2/2] hw/riscv: Provide rdtime callback for TCG in CLINT emulation Anup Patel 2020-02-02 13:42 ` Anup Patel 2020-02-18 19:08 ` [PATCH v3 0/2] RISC-V TIME CSR for privileged mode Palmer Dabbelt 2020-02-18 19:08 ` Palmer Dabbelt
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=20200202134217.14264-1-anup.patel@wdc.com \ --to=anup.patel@wdc.com \ --cc=Alistair.Francis@wdc.com \ --cc=anup@brainfault.org \ --cc=atish.patra@wdc.com \ --cc=palmer@dabbelt.com \ --cc=peter.maydell@linaro.org \ --cc=qemu-devel@nongnu.org \ --cc=qemu-riscv@nongnu.org \ --cc=sagark@eecs.berkeley.edu \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.