Don't die on old kernels without single-step debug support

Better inform the user that the host kernel do not
support single-stepping debug.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:38 +01:00
committed by Will Deacon
parent ad054a21d2
commit b625d4b6aa
+1 -1
View File
@@ -131,7 +131,7 @@ static void kvm__enable_singlestep(struct kvm *self)
};
if (ioctl(self->vcpu_fd, KVM_SET_GUEST_DEBUG, &debug) < 0)
die("KVM_SET_GUEST_DEBUG failed");
warning("KVM_SET_GUEST_DEBUG failed");
}
static void kvm__show_registers(struct kvm *self)