]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50a43915652e2e917ffaf746dd2b90e674e34a3c
tree1f6b12fca77403b7ee3323b2ef18ef53e5593094
parente1a4646328c436678e94ac49b61ed602cd30ace7
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