Re: [PATCH v2 5/8] target/riscv/kvm: rewrite kvm_riscv_handle_csr

2025-03-04 Thread Andrew Jones
On Mon, Feb 24, 2025 at 04:24:12PM +0800, Yong-Xuan Wang wrote: > Rewrite the kvm_riscv_handle_csr() to support additional CSR emulation > in user space with KVM acceleration. This update reuses the TCG CSR > emulation function to simplify the implementation and reduce the > redundant work. Also it

[PATCH v2 5/8] target/riscv/kvm: rewrite kvm_riscv_handle_csr

2025-02-24 Thread Yong-Xuan Wang
Rewrite the kvm_riscv_handle_csr() to support additional CSR emulation in user space with KVM acceleration. This update reuses the TCG CSR emulation function to simplify the implementation and reduce the redundant work. Also it introduces two hook functions for certain CSRs. Before emulation, the r