]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Allow piping debug output to file descriptor
authorSasha Levin <levinsasha928@gmail.com>
Fri, 21 Oct 2011 10:24:58 +0000 (12:24 +0200)
committerPekka Enberg <penberg@kernel.org>
Sun, 23 Oct 2011 11:21:37 +0000 (14:21 +0300)
commita73770f27686e48d5364ca91c7f5e32ef5cadab1
tree817179ca911606ae6954e06980c7d1bd839af9b7
parent524b59a49ed582e8c61e08373c1ac6cab16bd3a2
kvm tools: Allow piping debug output to file descriptor

This patch makes debug output go to a 'debug_fd' instead of stdout.

Doing so allows us to send the output to a different console when
required.

This patch also changes the behaviour of 'kvm debug' to show the debug
output in the console that executed the debug command instead of in the
console of the guest.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-debug.c
tools/kvm/builtin-run.c
tools/kvm/include/kvm/kvm-cpu.h
tools/kvm/kvm-cpu.c