All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v5 0/4] RISC-V Smstateen support
@ 2022-06-03 16:04 Mayuresh Chitale
  2022-06-03 16:04 ` [RFC PATCH v5 1/4] target/riscv: Add smstateen support Mayuresh Chitale
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Mayuresh Chitale @ 2022-06-03 16:04 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: Mayuresh Chitale, alistair.francis

This series adds support for the Smstateen specification which provides
a mechanism plug potential covert channels which are opened by extensions
that add to processor state that may not get context-switched. Currently
access to AIA registers, *envcfg registers and floating point(fcsr) is
controlled via smstateen.

These patches can also be found on riscv_smstateen_v5 branch at:
https://github.com/mdchitale/qemu.git

This series depends on the following series from Anup:
https://lists.nongnu.org/archive/html/qemu-devel/2022-05/msg05231.html

Changes in v5:
- Fix the order in which smstateen extension is added to the isa_edata_arr as
described in rule #3 the comment.

Changes in v4:
- Fix build issue with riscv32/riscv64-linux-user targets

Changes in v3:
- Fix coding style issues
- Fix *stateen0h index calculation

Changes in v2:
- Make h/s/envcfg bits in m/h/stateen registers as writeable by default.

Anup Patel (1):
  target/riscv: Force disable extensions if priv spec version does not
    match

Mayuresh Chitale (4):
  target/riscv: Add smstateen support
  target/riscv: smstateen check for h/senvcfg
  target/riscv: smstateen check for fcsr
  target/riscv: smstateen check for AIA/IMSIC

 target/riscv/cpu.c      |   2 +
 target/riscv/cpu.h      |   4 +
 target/riscv/cpu_bits.h |  36 +++
 target/riscv/csr.c      | 555 +++++++++++++++++++++++++++++++++++++++-
 target/riscv/machine.c  |  21 ++
 5 files changed, 615 insertions(+), 3 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2022-07-19  1:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 16:04 [RFC PATCH v5 0/4] RISC-V Smstateen support Mayuresh Chitale
2022-06-03 16:04 ` [RFC PATCH v5 1/4] target/riscv: Add smstateen support Mayuresh Chitale
2022-06-16  5:48   ` Alistair Francis
2022-07-07 15:41     ` Mayuresh Chitale
2022-07-02 10:19   ` angell1518
2022-07-07 16:53     ` [RFC " Mayuresh Chitale
2022-07-07 23:44       ` Weiwei Li
2022-07-18 15:37         ` Mayuresh Chitale
2022-07-19  1:03           ` Weiwei Li
2022-06-03 16:04 ` [RFC PATCH v5 2/4] target/riscv: smstateen check for h/senvcfg Mayuresh Chitale
2022-06-16  6:54   ` Alistair Francis
2022-06-16  6:55     ` Alistair Francis
2022-06-16  7:00   ` Alistair Francis
2022-07-02 10:33   ` angell1518
2022-07-07 17:20     ` [RFC " Mayuresh Chitale
2022-07-07 23:36       ` Weiwei Li
2022-06-03 16:04 ` [RFC PATCH v5 3/4] target/riscv: smstateen check for fcsr Mayuresh Chitale
2022-06-16  7:17   ` Alistair Francis
2022-07-07 16:12     ` Mayuresh Chitale
2022-06-03 16:04 ` [RFC PATCH v5 4/4] target/riscv: smstateen check for AIA/IMSIC Mayuresh Chitale
2022-06-16  7:18   ` Alistair Francis
2022-07-07 16:21     ` Mayuresh Chitale

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.