KVM: SVM: move has_svm() code to asm/virtext.h
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Nov 2008 21:03:20 +0000 (19:03 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:29 +0000 (16:52 +0200)
commit63d1142f8f69e39468bc6079ab2239e902828134
tree1f6b12fca77403b7ee3323b2ef18ef53e5593094
parent6aa07a0d77f6aafbe69e4e8609ffaf2b7ee1b591
KVM: SVM: move has_svm() code to asm/virtext.h

Use a trick to keep the printk()s on has_svm() working as before. gcc
will take care of not generating code for the 'msg' stuff when the
function is called with a NULL msg argument.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/virtext.h
arch/x86/kvm/svm.c