You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
Linux: vboxdrv: Introduce initial support for kernel 6.3.x series, bugref:10381.
|
|
https://www.virtualbox.org/changeset/98867/vbox
|
|
|
|
Index: trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
|
|
===================================================================
|
|
--- a/vboxdrv/r0drv/linux/memobj-r0drv-linux.c
|
|
+++ b/vboxdrv/r0drv/linux/memobj-r0drv-linux.c
|
|
@@ -1402,5 +1402,9 @@
|
|
{
|
|
flush_dcache_page(pMemLnx->apPages[rc]);
|
|
+#if RTLNX_VER_MIN(6,3,0)
|
|
+ vm_flags_set(papVMAs[rc], VM_DONTCOPY | VM_LOCKED);
|
|
+#else
|
|
papVMAs[rc]->vm_flags |= VM_DONTCOPY | VM_LOCKED;
|
|
+#endif
|
|
}
|
|
|
|
@@ -1873,5 +1877,8 @@
|
|
/* Thes flags help making 100% sure some bad stuff wont happen (swap, core, ++).
|
|
* See remap_pfn_range() in mm/memory.c */
|
|
-#if RTLNX_VER_MIN(3,7,0)
|
|
+
|
|
+#if RTLNX_VER_MIN(6,3,0)
|
|
+ vm_flags_set(vma, VM_DONTEXPAND | VM_DONTDUMP);
|
|
+#elif RTLNX_VER_MIN(3,7,0)
|
|
vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
|
|
#else
|