Re: [PATCH v3 6/9] target/loongarch: Implement kvm_arch_init_vcpu

2024-01-02 Thread gaosong
在 2023/12/28 下午4:40, Tianrui Zhao 写道: Implement kvm_arch_init_vcpu interface for loongarch, in this function, we register VM change state handler. And when VM state changes to running, the counter value should be put into kvm to keep consistent with kvm, and when state change to stop, counter val

[PATCH v3 6/9] target/loongarch: Implement kvm_arch_init_vcpu

2023-12-28 Thread Tianrui Zhao
Implement kvm_arch_init_vcpu interface for loongarch, in this function, we register VM change state handler. And when VM state changes to running, the counter value should be put into kvm to keep consistent with kvm, and when state change to stop, counter value should be refreshed from kvm. Signed