]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Improve compat message format
authorAsias He <asias.hejun@gmail.com>
Tue, 5 Jun 2012 16:40:43 +0000 (00:40 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 5 Jun 2012 20:31:39 +0000 (23:31 +0300)
commitf0888c89262ee3942f002d8b594a264071b17c77
treebaad9f22b6cfb7ffcb0fb8aaac8554801bba7c41
parente3f105a5c6ff110bfec5a33e7e07c1aaed23621e
kvm tools: Improve compat message format

---------
Before:
---------
*** Compatibility Warning ***

        virtio-blk device was not detected

While you have requested a virtio-blk device, the guest kernel did not initialize it.
Please make sure that the guest kernel was compiled with CONFIG_VIRTIO_BLK=y enabled in its .config

*** Compatibility Warning ***

        virtio-net device was not detected

While you have requested a virtio-net device, the guest kernel did not initialize it.
Please make sure that the guest kernel was compiled with CONFIG_VIRTIO_NET=y enabled in its .config

  # KVM session ended normally.

---------
After:
---------
  # KVM compatibility warning.
        virtio-blk device was not detected.
        While you have requested a virtio-blk device, the guest kernel did not initialize it.
        Please make sure that the guest kernel was compiled with CONFIG_VIRTIO_BLK=y enabled in .config.

  # KVM compatibility warning.
        virtio-net device was not detected.
        While you have requested a virtio-net device, the guest kernel did not initialize it.
        Please make sure that the guest kernel was compiled with CONFIG_VIRTIO_NET=y enabled in .config.

  # KVM session ended normally.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/guest_compat.c
tools/kvm/virtio/core.c