Re: [PATCH v3 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset

2024-01-02 Thread gaosong
在 2023/12/28 下午4:40, Tianrui Zhao 写道: Supplement vcpu env initial when vcpu reset, including init vcpu CSR_CPUID,CSR_TID to cpu->cpu_index. The two regs will be used in kvm_get/set_csr_ioctl. Signed-off-by: Tianrui Zhao Signed-off-by: xianglai li --- target/loongarch/cpu.c | 2 ++ target/lo

[PATCH v3 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset

2023-12-28 Thread Tianrui Zhao
Supplement vcpu env initial when vcpu reset, including init vcpu CSR_CPUID,CSR_TID to cpu->cpu_index. The two regs will be used in kvm_get/set_csr_ioctl. Signed-off-by: Tianrui Zhao Signed-off-by: xianglai li --- target/loongarch/cpu.c | 2 ++ target/loongarch/cpu.h | 2 +- 2 files changed, 3 i