]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Indicate the end of a KVM session
authorIngo Molnar <mingo@elte.hu>
Fri, 8 Apr 2011 15:17:20 +0000 (17:17 +0200)
committerPekka Enberg <penberg@kernel.org>
Fri, 8 Apr 2011 15:23:58 +0000 (18:23 +0300)
commite9316b7ab3e4b71199e1781a1846f2ba91d94d4d
treef43a3d2a6c4794c05b57d9c6816b9e0c73c755d0
parent68c59302cb233c1d99701e98c2f6872d36e0c382
kvm tools: Indicate the end of a KVM session

Right now when a KVM session ends with an incomplete line printk'd
without a newline, kvm exits in an ugly way:

  [    4.638016] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
  [    4.641668] Rebooting in 1 seconds..spirit:~/tip/tools/kvm>
  spirit:~/tip/tools/kvm>

See the shell prompt intermixed with the last line of kernel output.

There's also no indication to the user that everything is fine on the
kvm tool side.

This is somewhat of a beauty wart and also a bit confusing to users.

To clarify and clean up things, add a final printout on normal exits:

  [    4.654814] Please append a correct "root=" boot option; here are the available partitions:
  [    4.584390] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
  [    4.662243] Rebooting in 1 seconds..
    # KVM session ended normally.
  spirit:~/tip/tools/kvm>

This delimits the kernel output properly and gives feedback to the user
that (despite the scary kernel messages) all fine from the KVM POV.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/main.c