|
| From: | Tianrui Zhao |
| Subject: | Re: [PATCH RFC v2 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset |
| Date: | Thu, 4 May 2023 10:54:36 +0800 |
| User-agent: | Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
在 2023年05月02日 19:04, Richard Henderson 写道:
Thanks for your reviewing, we want to set mp_state to default value when vcpu reset, so we add it in cpu.c. When I reference other archs, I think I should add a new function named kvm_arch_reset_vcpu in kvm.c which will be called by vcpu_reset and move the reset mp_state into it.On 4/27/23 08:26, Tianrui Zhao wrote:Supplement vcpu env initial when vcpu reset, including init vcpu mp_state value to KVM_MP_STATE_RUNNABLE and init vcpu CSR_CPUID,CSR_TID to cpu->cpu_index. Signed-off-by: Tianrui Zhao<zhaotianrui@loongson.cn> --- target/loongarch/cpu.c | 3 +++ target/loongarch/cpu.h | 2 ++ 2 files changed, 5 insertions(+)Why do you need KVM_MP_STATE_RUNNABLE in loongarch/cpu.c, outside of kvm.c?For Arm, we test the architectural power state of the cpu. r~
Thanks Tianrui Zhao
| [Prev in Thread] | Current Thread | [Next in Thread] |