KVM: VMX: Bring the common code to header file
authorBabu Moger <babu.moger@amd.com>
Fri, 16 Mar 2018 20:37:24 +0000 (16:37 -0400)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 28 Mar 2018 20:47:06 +0000 (22:47 +0200)
commitc8e88717cfc6b36bedea22368d97667446318291
treee5de741d9cf03b50bf5f25035347de39c6728b24
parent18abdc3425aa546424672d3b1f932ecc55132368
KVM: VMX: Bring the common code to header file

This patch brings some of the code from vmx to x86.h header file. Now, we
can share this code between vmx and svm. Modified couple functions to make
it common.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.h