qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH RFC v2 3/9] target/loongarch: Supplement vcpu env initial whe


From: Richard Henderson
Subject: Re: [PATCH RFC v2 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset
Date: Tue, 2 May 2023 12:04:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]