Re: [PATCH] vm : forbid to start a being removed vm

2021-04-29 Thread Hogan Wang
> On 3/11/21 2:13 AM, Hogan Wang wrote: > > From: Zhuang Shengen > > > > When a vm is doing migration phase confirm, and then start it > > concurrently, it will lead to the vm out of libvirtd control. > > > > Cause Analysis: > > 1. thread1 migrate

[PATCH] already removed obj is not allowed to acquire job

2021-03-30 Thread Hogan Wang
From: Zhuang Shengen a removed vm begin a job may cause unanticipated results.so add judgement in qemuDomainObjBeginJobInternal to forbid a removed obj acquire the job Signed-off-by: Zhuang Shengen Reviewed-by: Hogan Wang --- src/qemu/qemu_domainjob.c | 7 +++ 1 file changed, 7

Re: Re: [PATCH] vm : forbid to start a removing vm

2021-03-26 Thread Hogan Wang
> On Fri, Mar 05, 2021 at 09:19:52AM +0800, Hogan Wang wrote: > >From: Zhuang Shengen > > > >When a vm is doing migration phase confirm, and then start it > >concurrently, it will lead to the vm out of libvirtd control. > > > >Cause Analysis: > >1

[PATCH] vm : forbid to start a removing vm

2021-03-10 Thread Hogan Wang
acquired the vm job success and start the vm. 5. cannot find the vm any more by 'virsh list' command. Actually, the started vm is not exist in the domain list. Solution: Check the vm->removing state before start. Signed-off-by: Zhuang Shengen Reviewed-by: Hogan Wang --- src/q

[PATCH] vm : forbid to start a removing vm

2021-03-04 Thread Hogan Wang
acquired the vm job success and start the vm. 5. cannot find the vm any more by 'virsh list' command. Actually, the started vm is not exist in the domain list. Solution: Check the vm->removing state before start. Signed-off-by: Zhuang Shengen Reviewed-by: Hogan Wang --- src/q

[PATCH python] iothread: fix memory access out of bounds

2021-02-23 Thread Hogan Wang
From: suruifeng When the 'pcpu' is larger then the last 'iothr->cpumap' bits, set the list element to False to avoid out of bounds access 'iothr->cpumap'. Signed-off-by: suruifeng Reviewed-by: Hogan Wang --- libvirt-override.c | 12 1 file changed, 8 insertions(+), 4 del