Re: [PATCH v8 27/43] arm64: RME: support RSI_HOST_CALL

From: Gavin Shan
Date: Wed Apr 30 2025 - 22:57:46 EST


On 4/16/25 11:41 PM, Steven Price wrote:
From: Joey Gouly <joey.gouly@xxxxxxx>

Forward RSI_HOST_CALLS to KVM's HVC handler.

Signed-off-by: Joey Gouly <joey.gouly@xxxxxxx>
Signed-off-by: Steven Price <steven.price@xxxxxxx>
---
Changes since v7:
* Avoid turning a negative return from kvm_smccc_call_handler() into a
error response to the guest. Instead propogate the error back to user
space.
Changes since v4:
* Setting GPRS is now done by kvm_rec_enter() rather than
rec_exit_host_call() (see previous patch - arm64: RME: Handle realm
enter/exit). This fixes a bug where the registers set by user space
were being ignored.
---
arch/arm64/kvm/rme-exit.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>