Re: [PATCH] kvm: dirty-ring: Fix race with vcpu creation

2023-02-21 Thread Gavin Shan
On 2/6/23 10:00 AM, Peter Xu wrote: On Tue, Sep 27, 2022 at 11:46:53AM -0400, Peter Xu wrote: It's possible that we want to reap a dirty ring on a vcpu that is during creation, because the vcpu is put onto list (CPU_FOREACH visible) before initialization of the structures. In this case: qemu_i

Re: [PATCH] kvm: dirty-ring: Fix race with vcpu creation

2023-02-05 Thread Peter Xu
Ping On Tue, Sep 27, 2022 at 11:46:53AM -0400, Peter Xu wrote: > It's possible that we want to reap a dirty ring on a vcpu that is during > creation, because the vcpu is put onto list (CPU_FOREACH visible) before > initialization of the structures. In this case: > > qemu_init_vcpu > x86_cpu_

Re: [PATCH] kvm: dirty-ring: Fix race with vcpu creation

2022-10-14 Thread Peter Xu
Ping?

[PATCH] kvm: dirty-ring: Fix race with vcpu creation

2022-09-27 Thread Peter Xu
It's possible that we want to reap a dirty ring on a vcpu that is during creation, because the vcpu is put onto list (CPU_FOREACH visible) before initialization of the structures. In this case: qemu_init_vcpu x86_cpu_realizefn cpu_exec_realizefn cpu_list_add < can