From: VMware, Inc <> Date: Mon, 15 Oct 2012 04:55:26 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2012.10.14-874563~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=694d4eef6f51d5ccb0df3d821811559461bbe7b3;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/loglevel_user.h b/open-vm-tools/lib/include/loglevel_user.h index c9aef27b5..e4c851cc4 100644 --- a/open-vm-tools/lib/include/loglevel_user.h +++ b/open-vm-tools/lib/include/loglevel_user.h @@ -133,6 +133,7 @@ LOGLEVEL_VAR(mksGLFBO), \ LOGLEVEL_VAR(mksGLShader), \ LOGLEVEL_VAR(mksGLState), \ + LOGLEVEL_VAR(mksGLWindow), \ LOGLEVEL_VAR(vdpPlugin), \ \ /* user/sound */ \ diff --git a/open-vm-tools/lib/include/vm_basic_asm_x86.h b/open-vm-tools/lib/include/vm_basic_asm_x86.h index cf6abc388..960c4f8c7 100644 --- a/open-vm-tools/lib/include/vm_basic_asm_x86.h +++ b/open-vm-tools/lib/include/vm_basic_asm_x86.h @@ -58,6 +58,24 @@ #error "x86-64 not supported" #endif +/* + * XTEST + * Return TRUE if processor is in transaction region. + * + */ +#if defined(__GNUC__) && (defined(VMM) || defined(VMKERNEL) || defined(FROBOS)) +static INLINE Bool +xtest(void) +{ + uint8 al; + __asm__ __volatile__(".byte 0x0f, 0x01, 0xd6 # xtest \n" + "setnz %%al\n" + : "=a"(al) : : "cc"); + return al; +} + +#endif /* __GNUC__ */ + /* * FXSAVE/FXRSTOR diff --git a/open-vm-tools/lib/include/vm_basic_asm_x86_64.h b/open-vm-tools/lib/include/vm_basic_asm_x86_64.h index cd1f9e52a..a395c1109 100644 --- a/open-vm-tools/lib/include/vm_basic_asm_x86_64.h +++ b/open-vm-tools/lib/include/vm_basic_asm_x86_64.h @@ -287,6 +287,23 @@ XRSTOR_AMD_ES0(const void *load, uint64 mask) #endif /* __GNUC__ */ +/* + * XTEST + * Return TRUE if processor is in transaction region. + * + */ +#if defined(__GNUC__) && (defined(VMM) || defined(VMKERNEL) || defined(FROBOS)) +static INLINE Bool +xtest(void) +{ + uint8 al; + __asm__ __volatile__(".byte 0x0f, 0x01, 0xd6 # xtest \n" + "setnz %%al\n" + : "=a"(al) : : "cc"); + return al; +} + +#endif /* __GNUC__ */ /* *----------------------------------------------------------------------------- diff --git a/open-vm-tools/lib/include/x86cpuid.h b/open-vm-tools/lib/include/x86cpuid.h index 3aea8b8b0..d9ba23ac5 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -411,7 +411,7 @@ FLAG( 7, 0, EBX, 7, 1, SMEP, YES, FALSE) FLAG( 7, 0, EBX, 8, 1, BMI2, YES, TRUE) \ FLAG( 7, 0, EBX, 9, 1, ENFSTRG, YES, FALSE) \ FLAG( 7, 0, EBX, 10, 1, INVPCID, NO, FALSE) \ -FLAG( 7, 0, EBX, 11, 1, RTM, NO, TRUE) \ +FLAG( 7, 0, EBX, 11, 1, RTM, YES, TRUE) \ CPUID_7_EBX_13 /* LEVEL, SUB-LEVEL, REG, POS, SIZE, NAME, MON SUPP, CPL3 */