]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Don't panic guest when exiting from custom rootfs
authorSasha Levin <levinsasha928@gmail.com>
Tue, 20 Dec 2011 10:23:20 +0000 (12:23 +0200)
committerPekka Enberg <penberg@kernel.org>
Wed, 21 Dec 2011 20:28:16 +0000 (22:28 +0200)
commit509a9f5279126e1cdc556cf6a7ea5dcdc3b95aa7
tree614acdc3400de4e635eafc6874bbd31f28cad41a
parent3686e38b7359dbec7475980b21c796695f3e5cbe
kvm tools: Don't panic guest when exiting from custom rootfs

We currently panic guest when exiting from custom rootfs since at that point
we terminate init, and the guest kernel doesn't quite like that.

Instead, we do a graceful shutdown when init is done (either when 'lkvm
sandbox' command or '/bin/sh' is finished).

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/guest/init_stage2.c