Upgrade vmware-workstation to 14.1.2.8497320-r3
Using ebuilds from stefantalpalaru overlay
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From c46d05eb1e2d32d82ec377a4c9b0dd0164eee68e Mon Sep 17 00:00:00 2001
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Thu, 22 Mar 2018 13:45:34 +0100
|
||||
Subject: [PATCH 08/10] vmmon: fix always_inline attribute usage
|
||||
|
||||
Function declared with __attribute__((always_inline)) should also be
|
||||
declared as inline, otherwise gcc issues a warning "always_inline function
|
||||
might not be inlinable". It's just cosmetic but getting rid of known
|
||||
harmless warnings makes it easier to spot actual problems. Use the
|
||||
__always_inline macro for LinuxDriverSyncReadTSCs() as this is how always
|
||||
inline functions should be declared in kernel code.
|
||||
---
|
||||
vmmon-only/linux/driver.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c
|
||||
index 1905aa4..b37454c 100644
|
||||
--- a/vmmon-only/linux/driver.c
|
||||
+++ b/vmmon-only/linux/driver.c
|
||||
@@ -981,7 +981,7 @@ LinuxDriverReadTSC(void *data, // OUT: TSC values
|
||||
*-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
-__attribute__((always_inline)) static Bool
|
||||
+__always_inline static Bool
|
||||
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
|
||||
{
|
||||
TSCDelta tscDelta;
|
||||
--
|
||||
2.17.0
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
From 6392262b68387299ee81d5d659cb5423a2ae1c9c Mon Sep 17 00:00:00 2001
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Mon, 26 Mar 2018 13:33:32 +0200
|
||||
Subject: [PATCH 09/10] vmmon: fix indirect call with retpoline build
|
||||
|
||||
Build against kernel with retpoline support issues warning
|
||||
|
||||
objtool: Task_Switch()+0x425: indirect call found in RETPOLINE build
|
||||
|
||||
This is because an indirect call in TaskSwitchToMonitor() is encoded using
|
||||
inline assembler so that it bypasses retpoline generation. For this
|
||||
purpose, macro CALL_NOSPEC exists since v4.15-rc8 (and has been backported
|
||||
into some distribution kernels with the rest of retpoline support). Use the
|
||||
macro if available and fallback to the original code if not.
|
||||
---
|
||||
vmmon-only/common/task.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/vmmon-only/common/task.c b/vmmon-only/common/task.c
|
||||
index 98cc74a..400ebfe 100644
|
||||
--- a/vmmon-only/common/task.c
|
||||
+++ b/vmmon-only/common/task.c
|
||||
@@ -2203,12 +2203,23 @@ TaskSwitchToMonitor(VMCrossPage *crosspage)
|
||||
{
|
||||
uint64 raxGetsWiped, rcxGetsWiped;
|
||||
|
||||
+#ifdef CALL_NOSPEC
|
||||
+ __asm__ __volatile__(CALL_NOSPEC
|
||||
+ : "=a" (raxGetsWiped),
|
||||
+ "=c" (rcxGetsWiped)
|
||||
+ : "0" (codePtr),
|
||||
+ "1" (crosspage),
|
||||
+ THUNK_TARGET(codePtr)
|
||||
+ : "rdx", "r8", "r9", "r10", "r11", "cc", "memory");
|
||||
+#else
|
||||
__asm__ __volatile__("call *%%rax"
|
||||
: "=a" (raxGetsWiped),
|
||||
"=c" (rcxGetsWiped)
|
||||
: "0" (codePtr),
|
||||
"1" (crosspage)
|
||||
: "rdx", "r8", "r9", "r10", "r11", "cc", "memory");
|
||||
+#endif
|
||||
+
|
||||
}
|
||||
#elif defined(_MSC_VER)
|
||||
/*
|
||||
--
|
||||
2.17.0
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From ae4d4697c6f48be9314d807480dac206c9889d46 Mon Sep 17 00:00:00 2001
|
||||
From: Michal Kubecek <mkubecek@suse.cz>
|
||||
Date: Sun, 11 Feb 2018 01:17:00 +0100
|
||||
Subject: [PATCH 07/10] vmmon: use standard definition of MSR_K7_HWCR_SMMLOCK
|
||||
if available
|
||||
|
||||
The MSR_K7_HWCR_SMMLOCK macro is defined in mainline since commit
|
||||
18c71ce9c882 ("x86/CPU/AMD: Add the Secure Encrypted Virtualization CPU
|
||||
feature") in v4.16-rc1.
|
||||
---
|
||||
vmmon-only/include/x86msr.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/vmmon-only/include/x86msr.h b/vmmon-only/include/x86msr.h
|
||||
index e10a859..5618776 100644
|
||||
--- a/vmmon-only/include/x86msr.h
|
||||
+++ b/vmmon-only/include/x86msr.h
|
||||
@@ -441,7 +441,9 @@ typedef enum {
|
||||
#define MSR_K7_HWCR_SSEDIS 0x00008000ULL // Disable SSE bit
|
||||
#define MSR_K7_HWCR_MONMWAITUSEREN 0x00000400ULL // Enable MONITOR/MWAIT CPL>0
|
||||
#define MSR_K7_HWCR_TLBFFDIS 0x00000040ULL // Disable TLB Flush Filter
|
||||
+#ifndef MSR_K7_HWCR_SMMLOCK
|
||||
#define MSR_K7_HWCR_SMMLOCK 0x00000001ULL // Lock SMM environment
|
||||
+#endif
|
||||
|
||||
#ifndef MSR_K8_SYSCFG
|
||||
#define MSR_K8_SYSCFG 0xc0010010
|
||||
--
|
||||
2.17.0
|
||||
|
||||
Reference in New Issue
Block a user