awslabs / snapchange

Lightweight fuzzing of a memory snapshot using KVM
Apache License 2.0
440 stars 27 forks source link

Retry creating KVM VMs if the respective ioctl failed. #6

Closed f0rki closed 1 year ago

f0rki commented 1 year ago

Found that on c6.metal instances with -c 192, I was seeing panics due to KVM not keeping up with the VMs snapchange spins up.

The problem is that a SIGALRM can be raised while the main thread attempts to do an ioctl with KVM_CREATE_VM, which then returns EINTR and subsequently causes a panic.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.