]> www.infradead.org Git - users/dwmw2/linux.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>
Fri, 21 Nov 2008 15:54:00 +0000 (17:54 +0200)
commit1e662dc1a1892e12a4ffe63da2c962ad7afd3ccf
treefe3297cb39532afa693e7e06ec32dcee9e7054e0
parentcc91d21543d50c83275a96a3aad438256645c86d
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