forked from pool/virtualbox
335235e20b
- Version bump to 6.1.24 (released July 20 2021 by Oracle) This is a maintenance release. The following items were fixed and/or added: Storage: Fixed starting a VM if a device is attached to a VirtIO SCSI port higher than 30 (bug #20213) Storage: Improvement to DVD medium change signaling Serial: Fixed a the guest missing interrupts under certain circumstances (6.0 regression, bug #18668) Audio: Multiple fixes and enhancements Network: Fixed connectivity issue with virtio-net after resuming VM with disconnected link Network: Fixed UDP GSO fragmentation issue with missing 8 bytes of payload at the end of the first fragment API: Fixed VM configuration for recent Windows Server versions Extension Pack: Fixed issues with USB webcam pass-through on Linux Host and guest driver: Fix small memory leak (bug #20280) Linux host and guest: Support kernel version 5.13 (bug #20456) Linux host and guest: Introduce support for SUSE SLES/SLED 15 SP3 kernels (bug #20396) Linux host: Installer will not attempt to build kernel modules if system already has them installed and modules versions match current version Guest Additions: Fixed crash on using shared clipboard (bug #19165) Linux Guest Additions: Introduce support for Ubuntu specific kernels (bug #20325) Solaris guest: Increased default memory and disk sizes EFI: Support network booting with the E1000 network controller emulation EFI: Stability improvements (bug #20090) Delete file "fix_random_stack_failure.patch" - fixed upstream. - Add vboximg-mount to packaging. boo#1188045. Fix an error in file "fixes_for_5.14.patch". problem with kernel 5.13 as shown in boo#1188105. OBS-URL: https://build.opensuse.org/request/show/907363 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=611
51 lines
1.8 KiB
Diff
51 lines
1.8 KiB
Diff
Index: VirtualBox-6.1.22/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
===================================================================
|
|
--- VirtualBox-6.1.22.orig/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
+++ VirtualBox-6.1.22/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
@@ -2126,7 +2126,11 @@ static int vbsf_iter_lock_pages(struct i
|
|
int rc = 0;
|
|
|
|
Assert(iov_iter_count(iter) + pStash->cb > 0);
|
|
+#if RTLNX_VER_MAX(5, 14,0)
|
|
if (!(iter->type & ITER_KVEC)) {
|
|
+#else
|
|
+ if (!iov_iter_is_kvec(iter)) {
|
|
+#endif
|
|
/*
|
|
* Do we have a stashed page?
|
|
*/
|
|
@@ -2373,7 +2377,11 @@ static size_t vbsf_iter_max_span_of_page
|
|
{
|
|
size_t cPages;
|
|
# if RTLNX_VER_MIN(3,16,0)
|
|
+# if RTLNX_VER_MAX(5, 14, 0)
|
|
if (iter_is_iovec(iter) || (iter->type & ITER_KVEC)) {
|
|
+#else
|
|
+ if (iter_is_iovec(iter) || iov_iter_is_kvec(iter)) {
|
|
+#endif
|
|
#endif
|
|
const struct iovec *pCurIov = iter->iov;
|
|
size_t cLeft = iter->nr_segs;
|
|
@@ -2436,7 +2444,11 @@ static size_t vbsf_iter_max_span_of_page
|
|
} else {
|
|
/* Won't bother with accurate counts for the next two types, just make
|
|
some rough estimates (does pipes have segments?): */
|
|
+#if RTLNX_VER_MAX(5, 14,0)
|
|
size_t cSegs = iter->type & ITER_BVEC ? RT_MAX(1, iter->nr_segs) : 1;
|
|
+#else
|
|
+ size_t cSegs = (iov_iter_type(iter) == ITER_BVEC) ? RT_MAX(1, iter->nr_segs) : 1;
|
|
+#endif
|
|
cPages = (iov_iter_count(iter) + (PAGE_SIZE * 2 - 2) * cSegs) >> PAGE_SHIFT;
|
|
}
|
|
# endif
|
|
@@ -3793,7 +3805,9 @@ struct address_space_operations vbsf_reg
|
|
#endif
|
|
#if RTLNX_VER_MIN(2,6,24)
|
|
.write_begin = vbsf_write_begin,
|
|
+#if RTLNX_VER_MAX(5, 14, 0)
|
|
.write_end = simple_write_end,
|
|
+#endif
|
|
#elif RTLNX_VER_MIN(2,5,45)
|
|
.prepare_write = simple_prepare_write,
|
|
.commit_write = simple_commit_write,
|