]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Don't die on old kernels without single-step debug support
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 24 Mar 2010 21:15:36 +0000 (00:15 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 25 Mar 2010 15:26:12 +0000 (17:26 +0200)
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>
tools/kvm/kvm.c

index 566a453e831596070175ea49eea5cd1f56b91e9e..c8bb938d4bf929172f0c94078a798e172a7cc744 100644 (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)