tools uapi x86: Sync vmx.h with the kernel [Linux 5.1]

tools uapi x86: Sync vmx.h with the kernel [Linux 5.1]

This Linux kernel change "tools uapi x86: Sync vmx.h with the kernel" is included in the Linux 5.1 release. This change is authored by Arnaldo Carvalho de Melo <acme [at]> on Mon Apr 22 11:54:50 2019 -0300. The commit for this change in Linux stable tree is 24e45b4 (patch).

tools uapi x86: Sync vmx.h with the kernel

To pick up the changes from:

  2b27924bb1d4 ("KVM: nVMX: always use early vmcs check when EPT is disabled")

That causes this object in the tools/perf build process to be rebuilt:

  CC       /tmp/build/perf/arch/x86/util/kvm-stat.o

But it isn't using VMX_ABORT_ prefixed constants, so no change in

This silences this perf build warning:

  Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/vmx.h' differs from latest version at 'arch/x86/include/uapi/asm/vmx.h'
  diff -u tools/arch/x86/include/uapi/asm/vmx.h arch/x86/include/uapi/asm/vmx.h

Cc: Adrian Hunter <>
Cc: Jiri Olsa <>
Cc: Namhyung Kim <>
Cc: Paolo Bonzini <>
Signed-off-by: Arnaldo Carvalho de Melo <>

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 tools/arch/x86/include/uapi/asm/vmx.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/arch/x86/include/uapi/asm/vmx.h b/tools/arch/x86/include/uapi/asm/vmx.h
index f0b0c90..d213ec5 100644
--- a/tools/arch/x86/include/uapi/asm/vmx.h
+++ b/tools/arch/x86/include/uapi/asm/vmx.h
@@ -146,6 +146,7 @@

+#define VMX_ABORT_VMCS_CORRUPTED             3
 #define VMX_ABORT_LOAD_HOST_MSR_FAIL         4

 #endif /* _UAPIVMX_H */

Leave a Reply

Your email address will not be published. Required fields are marked *