forked from pool/virtualbox
4beeb72f18
- Version update to 6.1.2 (released January 14 2020i by Oracle) 18 Vulnerabilities fixed: CVE-2020-2674 CVE-2020-2682 CVE-2020-2698 CVE-2020-2701 CVE-2020-2702 CVE-2020-2726 CVE-2020-2681 CVE-2020-2689 CVE-2020-2690 CVE-2020-2691 CVE-2020-2692 CVE-2020-2703 CVE-2020-2704 CVE-2020-2705 CVE-2020-2725 CVE-2020-2678 CVE-2020-2727 CVE-2020-2693 See bsc#1161050 File "fixes_for_leap15.2.patch" added to fix build for Leap 15.2. As announced earlier by Oracle, 32-bit builds are no longer supported. This is a maintenance release. The following items were fixed and/or added: Virtualization core: fixed performance issue observed with Windows XP guests on AMD hosts (6.0.0 regression; bug #19152) Virtualization core: consistent IBRS/IBPB CPUID feature reporting, avoids crash of NetBSD 9.0 RC1 installer (bug #19146) GUI: fixed updating of runtime info GUI: in Display settings, do not show "2D video acceleration" checkbox if it is meaningless for the selected graphics adapter Audio: fixed audio input handling when VRDE is enabled Audio: fixed crash in the HDA emulation when using multi-speaker configurations Storage: fixed use of encrypted disks with snapshots involved (6.1.0 regression; bug #19160) Storage: improve performance of virtio-scsi Storage: read-only support for compressed clusters in QCOW2 images Linux host: Support Linux 5.5 (guest additions not yet) Windows guest: accelerate 2D video decoding (scaling and color space conversion) if the VM is configured to use VBoxSVGA with 3D enabled Windows guest: fix guest additions installer to upgrade the mouse filter driver reliably Windows guest: when uninstalling older Guest Additions with old 3D support enabled try restoring original Direct3D files Linux guest: improve resize and multi-monitor handling for VMs using VMSVGA (known remaining issue: do not disable a monitor "in the middle", causes confusion) - Version update to 6.1.0 (released December 10 2019 by Oracle) - Fixes bsc#1132102. - Removed file "set_graphics_type.patch" as the problem is fixed upstream. This is a major update. The following major new features were added: - Implemented support for importing a virtual machine from Oracle Cloud Infrastructure - Extended support for exporting a virtual machine to Oracle Cloud Infrastructure, allowing the creation of multiple virtual machines without re-uploading. Also added option to export a VM to the cloud using the more efficient OBS-URL: https://build.opensuse.org/request/show/765913 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=526
110 lines
4.8 KiB
Diff
110 lines
4.8 KiB
Diff
Index: VirtualBox-6.1.0_RC1/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
===================================================================
|
|
--- VirtualBox-6.1.0_RC1.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
+++ VirtualBox-6.1.0_RC1/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
@@ -73,6 +73,10 @@
|
|
#define VBOXNETFLT_OS_SPECFIC 1
|
|
#include "../VBoxNetFltInternal.h"
|
|
|
|
+# if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 2
|
|
+# define OPENSUSE_152
|
|
+# endif
|
|
+
|
|
typedef struct VBOXNETFLTNOTIFIER {
|
|
struct notifier_block Notifier;
|
|
PVBOXNETFLTINS pThis;
|
|
@@ -924,13 +928,13 @@ static void vboxNetFltLinuxSkBufToSG(PVB
|
|
for (i = 0; i < skb_shinfo(pBuf)->nr_frags; i++)
|
|
{
|
|
skb_frag_t *pFrag = &skb_shinfo(pBuf)->frags[i];
|
|
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|
+# if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) || defined(OPENSUSE_152)
|
|
pSG->aSegs[iSeg].cb = pFrag->bv_len;
|
|
pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
|
|
-# else /* < KERNEL_VERSION(5, 4, 0) */
|
|
+# else /* < KERNEL_VERSION(5, 4, 0) */
|
|
pSG->aSegs[iSeg].cb = pFrag->size;
|
|
pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset;
|
|
-# endif /* >= KERNEL_VERSION(5, 4, 0) */
|
|
+# endif /* >= KERNEL_VERSION(5, 4, 0) */
|
|
Log6((" %p", pSG->aSegs[iSeg].pv));
|
|
pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS;
|
|
Assert(iSeg <= pSG->cSegsAlloc);
|
|
@@ -945,13 +949,13 @@ static void vboxNetFltLinuxSkBufToSG(PVB
|
|
for (i = 0; i < skb_shinfo(pFragBuf)->nr_frags; i++)
|
|
{
|
|
skb_frag_t *pFrag = &skb_shinfo(pFragBuf)->frags[i];
|
|
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|
+# if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) || defined(OPENSUSE_152)
|
|
pSG->aSegs[iSeg].cb = pFrag->bv_len;
|
|
pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
|
|
-# else /* < KERNEL_VERSION(5, 4, 0) */
|
|
+# else /* < KERNEL_VERSION(5, 4, 0) */
|
|
pSG->aSegs[iSeg].cb = pFrag->size;
|
|
pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset;
|
|
-# endif /* >= KERNEL_VERSION(5, 4, 0) */
|
|
+# endif /* >= KERNEL_VERSION(5, 4, 0) */
|
|
Log6((" %p", pSG->aSegs[iSeg].pv));
|
|
pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS;
|
|
Assert(iSeg <= pSG->cSegsAlloc);
|
|
Index: VirtualBox-6.1.0_RC1/src/VBox/Additions/linux/drm/vbox_drv.c
|
|
===================================================================
|
|
--- VirtualBox-6.1.0_RC1.orig/src/VBox/Additions/linux/drm/vbox_drv.c
|
|
+++ VirtualBox-6.1.0_RC1/src/VBox/Additions/linux/drm/vbox_drv.c
|
|
@@ -307,11 +307,13 @@ static void vbox_master_drop(struct drm_
|
|
static struct drm_driver driver = {
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
|
|
.driver_features =
|
|
- DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
|
|
+ DRIVER_PRIME |
|
|
+#endif
|
|
# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81)
|
|
DRIVER_IRQ_SHARED |
|
|
# endif /* < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81) */
|
|
- DRIVER_PRIME,
|
|
+ DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
|
|
#else /* >= KERNEL_VERSION(5, 4, 0) */
|
|
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
|
|
#endif /* < KERNEL_VERSION(5, 4, 0) */
|
|
Index: VirtualBox-6.1.0_RC1/src/VBox/Additions/linux/drm/vbox_main.c
|
|
===================================================================
|
|
--- VirtualBox-6.1.0_RC1.orig/src/VBox/Additions/linux/drm/vbox_main.c
|
|
+++ VirtualBox-6.1.0_RC1/src/VBox/Additions/linux/drm/vbox_main.c
|
|
@@ -626,8 +626,12 @@ static inline u64 vbox_bo_mmap_offset(st
|
|
#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_70)
|
|
return bo->bo.addr_space_offset;
|
|
#else
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|
+ return drm_vma_node_offset_addr(&bo->bo.base.vma_node);
|
|
+#else
|
|
return drm_vma_node_offset_addr(&bo->bo.vma_node);
|
|
#endif /* >= KERNEL_VERSION(5, 4, 0) */
|
|
+#endif
|
|
}
|
|
|
|
int
|
|
Index: VirtualBox-6.1.0_RC1/include/iprt/cdefs.h
|
|
===================================================================
|
|
--- VirtualBox-6.1.0_RC1.orig/include/iprt/cdefs.h
|
|
+++ VirtualBox-6.1.0_RC1/include/iprt/cdefs.h
|
|
@@ -1173,14 +1173,15 @@
|
|
* Tell the compiler that we're falling through to the next case in a switch.
|
|
* @sa RT_FALL_THRU */
|
|
#if RT_GNUC_PREREQ(7, 0)
|
|
-# define RT_FALL_THROUGH() __attribute__((__fallthrough__))
|
|
+# define FALL_THROUGH __attribute__((__fallthrough__))
|
|
#else
|
|
-# define RT_FALL_THROUGH() (void)0
|
|
+# define FALL_THROUGH (void)0
|
|
#endif
|
|
/** @def RT_FALL_THRU
|
|
* Tell the compiler that we're falling thru to the next case in a switch.
|
|
* @sa RT_FALL_THROUGH */
|
|
-#define RT_FALL_THRU() RT_FALL_THROUGH()
|
|
+#define RT_FALL_THRU() FALL_THROUGH
|
|
+#define RT_FALL_THROUGH() FALL_THROUGH
|
|
|
|
|
|
/** @def RT_IPRT_FORMAT_ATTR
|