summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/vmware-modules/files')
-rw-r--r--app-emulation/vmware-modules/files/308-5.01-00-vm_fault_t.patch25
-rw-r--r--app-emulation/vmware-modules/files/308-5.01-01-kernel_ds.patch38
2 files changed, 63 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/308-5.01-00-vm_fault_t.patch b/app-emulation/vmware-modules/files/308-5.01-00-vm_fault_t.patch
new file mode 100644
index 0000000..09f6376
--- /dev/null
+++ b/app-emulation/vmware-modules/files/308-5.01-00-vm_fault_t.patch
@@ -0,0 +1,25 @@
+--- ./vmmon-only/linux/driver.c 2019-05-04 17:14:03.601828954 +0200
++++ ./vmmon-only/linux/driver.c.new 2019-05-04 17:31:37.452910953 +0200
+@@ -104,7 +104,9 @@
+
+ static int LinuxDriver_Close(struct inode *inode, struct file *filp);
+ static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait);
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++static vm_fault_t LinuxDriverFault(struct vm_fault *fault);
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+ static int LinuxDriverFault(struct vm_fault *fault);
+ #elif defined(VMW_NOPAGE_2624)
+ static int LinuxDriverFault(struct vm_area_struct *vma, struct vm_fault *fault);
+@@ -924,7 +926,10 @@
+ *-----------------------------------------------------------------------------
+ */
+
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++static vm_fault_t
++LinuxDriverFault(struct vm_fault *fault) //IN/OUT
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+ static int
+ LinuxDriverFault(struct vm_fault *fault) //IN/OUT
+ #elif defined(VMW_NOPAGE_2624)
diff --git a/app-emulation/vmware-modules/files/308-5.01-01-kernel_ds.patch b/app-emulation/vmware-modules/files/308-5.01-01-kernel_ds.patch
new file mode 100644
index 0000000..911d691
--- /dev/null
+++ b/app-emulation/vmware-modules/files/308-5.01-01-kernel_ds.patch
@@ -0,0 +1,38 @@
+--- ./vmmon-only/linux/hostif.c 2019-05-04 17:33:42.135920654 +0200
++++ ./vmmon-only/linux/hostif.c.new 2019-05-04 17:37:02.428936239 +0200
+@@ -2298,7 +2298,11 @@
+ int ret;
+
+ old_fs = get_fs();
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++ set_fs(KERNEL_DS);
++#else
+ set_fs(get_ds());
++#endif
+ r = APICR_TO_ADDR(r, APICR_VERSION);
+ ret = HostIF_CopyFromUser(&dummy, (void*)r, sizeof(dummy));
+ set_fs(old_fs);
+@@ -2499,7 +2503,11 @@
+ }
+
+ old_fs = get_fs();
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++ set_fs(KERNEL_DS);
++#else
+ set_fs(get_ds());
++#endif
+
+ {
+ struct poll_wqueues table;
+@@ -2628,7 +2636,11 @@
+ }
+
+ old_fs = get_fs();
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++ set_fs(KERNEL_DS);
++#else
+ set_fs(get_ds());
++#endif
+
+ /*
+ * Always write sizeof(uint64) bytes. This works fine for eventfd and