Re: [PATCH 1/1] accel/kvm/kvm-all: fix vm crash when set dirty ring and memorybacking

2023-03-23 Thread Peter Xu
On Thu, Mar 23, 2023 at 09:19:15PM +0800, Jiajing Zhou wrote: > From: "zhoujiajing.vergil" > > It is possible enter this function when the cpu not finished creating but > is already in the cpu list. The value of dirty_gfns is null, causing vm > crash here. > > When both dirty-ring and

[PATCH 1/1] accel/kvm/kvm-all: fix vm crash when set dirty ring and memorybacking

2023-03-23 Thread Jiajing Zhou
From: "zhoujiajing.vergil" It is possible enter this function when the cpu not finished creating but is already in the cpu list. The value of dirty_gfns is null, causing vm crash here. When both dirty-ring and memorybacking are set, creating a vm will assert on kvm_dirty_ring_reap_one. Part of