From b625d4b6aa5a109482feb8c4a25782f586e76eec Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 25 Mar 2010 00:15:36 +0300 Subject: [PATCH] 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 Signed-off-by: Pekka Enberg --- kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm.c b/kvm.c index 566a453..c8bb938 100644 --- a/kvm.c +++ b/kvm.c @@ -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)