Skip to contentSkip to conversation

Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0

Qemu-devel changlimin 2 participants 5 messages Dec 15, 2010

lore
Share & tools
lore

changlimin

author
#0 lore raw

BTW windows 2008 guest start failed at qem-kvm 0.13.0, but 0.12.5 start success.

Best regards

#1 lore raw

2010/12/15 changlimin <[email protected]>:

Quoted 2 lines

BTW windows 2008 guest start failed at qem-kvm 0.13.0, but 0.12.5 start success.

I am not qemu/kvm expert, but I think if you could provide either qemu instruction trace (using -d) or traces inside the guest OS itself (windows live debugger maybe?), it would be much easier for people here to decipher the problem.

At least could you write down how do you invoke qemu-kvm back then?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
author
#2 lore raw

1. I create a guest use libvirt;
2. I start the guest use: virsh start guest;
3. I save the guest to a file, use: virsh save guest guest.save
4. I retore the guest, use : virsh retore guest.save
Sometimes, the guest restore successful. sometimes restore fail.
I debug the code, the qemu-kvm hang at kvm_put_vcpu_events, the process state is D, uninterruptable sleep. Only can killed by kill -9. I print the events when kvm_put_vcpu_events / kvm_get_vcpu_events, it is always different, event when restore successful

----- Original Message -----
From: "Mulyadi Santosa" <[email protected]>
To: "changlimin" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, December 15, 2010 3:46 PM
Subject: Re: [Qemu-devel] Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0

Quoted 20 lines

2010/12/15 changlimin <[email protected]>:

Quoted 2 lines

BTW windows 2008 guest start failed at qem-kvm 0.13.0, but 0.12.5 start success.

I am not qemu/kvm expert, but I think if you could provide either qemu instruction trace (using -d) or traces inside the guest OS itself (windows live debugger maybe?), it would be much easier for people here to decipher the problem.

At least could you write down how do you invoke qemu-kvm back then?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#3 lore raw
Quoted 7 lines · changlimin

1. I create a guest use libvirt;
2. I start the guest use: virsh start guest;
3. I save the guest to a file, use: virsh save guest guest.save
4. I retore the guest, use : virsh retore guest.save
   Sometimes, the guest restore successful. sometimes restore fail.
   I debug the code, the qemu-kvm hang at  kvm_put_vcpu_events, the process state is D, uninterruptable sleep. Only can killed by kill -9. I print the events when kvm_put_vcpu_events / kvm_get_vcpu_events, it is always different, event when restore successful

I could only say, i smell deadlock due to race condition here...but I have no further prove...how many (virtual) CPU did you simulate at that time?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
author
#4 lore raw

I have tried 1 vcpu and 2 vcpus, both sometimes restore fail.

----- Original Message -----
From: "Mulyadi Santosa" <[email protected]>
To: "changlimin" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, December 15, 2010 4:31 PM
Subject: Re: [Qemu-devel] Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0

Quoted 7 lines · changlimin

1. I create a guest use libvirt;
2. I start the guest use: virsh start guest;
3. I save the guest to a file, use: virsh save guest guest.save
4. I retore the guest, use : virsh retore guest.save
Sometimes, the guest restore successful. sometimes restore fail.
I debug the code, the qemu-kvm hang at kvm_put_vcpu_events, the process state is D, uninterruptable sleep. Only can killed by kill -9. I print the events when kvm_put_vcpu_events / kvm_get_vcpu_events, it is always different, event when restore successful

I could only say, i smell deadlock due to race condition here...but I have no further prove...how many (virtual) CPU did you simulate at that time?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com