From: Carsten Otte Date: Tue, 25 Mar 2008 17:47:44 +0000 (+0100) Subject: s390: KVM guest: detect when running on kvm X-Git-Tag: v2.6.26-rc1~1028^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa5877439d5a062d91c3abd5a690483bbdb4268e;p=pandora-kernel.git s390: KVM guest: detect when running on kvm This patch adds functionality to detect if the kernel runs under the KVM hypervisor. A macro MACHINE_IS_KVM is exported for device drivers. This allows drivers to skip device detection if the systems runs non-virtualized. We also define a preferred console to avoid having the ttyS0, which is a line mode only console. Signed-off-by: Christian Borntraeger Acked-by: Martin Schwidefsky Signed-off-by: Carsten Otte Signed-off-by: Avi Kivity --- Reading git-diff-tree failed