target/loongarch: Implement kvm_arch_handle_exit
authorTianrui Zhao <zhaotianrui@loongson.cn>
Fri, 5 Jan 2024 07:58:02 +0000 (15:58 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 11 Jan 2024 11:14:00 +0000 (19:14 +0800)
commita05a950f2faf63ec14347153cded4f113af020f0
treeee779c29ad9c869662c76f9d02bdcfefd6564232
parentd11681c94f4b52d1e095e60ca101df80578437e5
target/loongarch: Implement kvm_arch_handle_exit

Implement kvm_arch_handle_exit for loongarch. In this
function, the KVM_EXIT_LOONGARCH_IOCSR is handled,
we read or write the iocsr address space by the addr,
length and is_write argument in kvm_run.

Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240105075804.1228596-8-zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/kvm/kvm.c
target/loongarch/trace-events