mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-27 00:35:59 +00:00
kvm tools: prevent guest softlockup errors when pausing
Use the new KVM_KVMCLOCK_CTRL ioctl to prevent guests from wrongfully detecting lockups when in fact they were paused. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -531,6 +531,7 @@ static void handle_pause(int fd, u32 type, u32 len, u8 *msg)
|
||||
kvm__continue();
|
||||
} else if (type == KVM_IPC_PAUSE && !is_paused) {
|
||||
kvm->vm_state = KVM_VMSTATE_PAUSED;
|
||||
ioctl(kvm->vm_fd, KVM_KVMCLOCK_CTRL);
|
||||
kvm__pause();
|
||||
} else {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user