This patch originates from the last comment of the following review:

https://lore.kernel.org/all/[email protected]/

We call probe_pages to probe the memory before doing a memory operations or
probe_access_flags to do the same while also obtaining probe flags and host
address.
This involves different calls to code that is almost the same.

This patch expands probe_pages to provide for both cases.

In the new version of probe_pages we don't have a return value to get the probe
flags. We need instead to pass a pointer to such variable in order to get the
flags.

Cc: Richard Handerson <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Weiwei Li <[email protected]>
Cc: Daniel Henrique Barboza <[email protected]>
Cc: Liu Zhiwei <[email protected]>
Cc: Helene Chelin <[email protected]>
Cc: Nathan Egge <[email protected]>
Cc: Max Chou <[email protected]>
Cc: Jeremy Bennett <[email protected]>
Cc: Craig Blackmore <[email protected]>

Paolo Savini (1):
  [RISC-V/RVV] Expand the probe_pages helper function to handle probe
    flags.

 target/riscv/vector_helper.c | 57 +++++++++++++++++++++++-------------
 1 file changed, 37 insertions(+), 20 deletions(-)

-- 
2.34.1

Reply via email to