1
0
forked from pool/virtualbox
virtualbox/fix_7.0.6_locking_problems.patch

29 lines
1.2 KiB
Diff
Raw Normal View History

Accepting request 1142681 from home:larryr:branches:Virtualization - Version bump to VirtualBox 7.0.14 (released January 16, 2024 by Oracle) This is a maintenance release. The following items were fixed and/or added: Audio: Added more fixes for switching host audio devices on Windows hosts using the WAS backend 3D: Added general improvements OCI: Fixed wrong guest RAM unit usage in VirtualSystemDescription, memory is provided in bytes, "Byte" is the base unit Main: OVF Import/Export: Added support for importing and exporting VMs containing NVMe storage controllers (bug #19320) Main: OVF Import/Export: Added support for exporting a VM which contains a medium inserted into a virtual CD/DVD drive which is attached to a Virtio-SCSI controller Devices: Fixed a problem where Windows guests "forget" in-progress touch events when the user holds down a finger without moving it for a period of time. macOS Host USB: Added support for newer storage devices macOS Host: Fixed memory Leak in the VBoxIntNetSwitch process when VM was configured to use 'Internal Networking' (bug #21752) Linux Host and Guest: Added initial support for RHEL 9.4 kernel Linux Guest Additions: Fixed kernel panic on RHEL 8.9 kernel caused by vboxvideo (bugs #10381 and #21911) Solaris Guest Additions: Added support for the Additions to be installed into an alternate root path ('pkgadd -R') Solaris Guest Additions: Removed requirement to reboot VM after uninstalling GAs RDP: Fix possible crash when connecting with the Apple Silicon variant of the Microsoft Remote Desktop application (bug #21820). BIOS: Fixed handle number used for DMI OEM table (bug #19781) ======= >>>>>>> ./virtualbox.changes.new OBS-URL: https://build.opensuse.org/request/show/1142681 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=720
2024-01-29 23:31:23 +01:00
Index: VirtualBox-7.0.14/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
===================================================================
Accepting request 1142681 from home:larryr:branches:Virtualization - Version bump to VirtualBox 7.0.14 (released January 16, 2024 by Oracle) This is a maintenance release. The following items were fixed and/or added: Audio: Added more fixes for switching host audio devices on Windows hosts using the WAS backend 3D: Added general improvements OCI: Fixed wrong guest RAM unit usage in VirtualSystemDescription, memory is provided in bytes, "Byte" is the base unit Main: OVF Import/Export: Added support for importing and exporting VMs containing NVMe storage controllers (bug #19320) Main: OVF Import/Export: Added support for exporting a VM which contains a medium inserted into a virtual CD/DVD drive which is attached to a Virtio-SCSI controller Devices: Fixed a problem where Windows guests "forget" in-progress touch events when the user holds down a finger without moving it for a period of time. macOS Host USB: Added support for newer storage devices macOS Host: Fixed memory Leak in the VBoxIntNetSwitch process when VM was configured to use 'Internal Networking' (bug #21752) Linux Host and Guest: Added initial support for RHEL 9.4 kernel Linux Guest Additions: Fixed kernel panic on RHEL 8.9 kernel caused by vboxvideo (bugs #10381 and #21911) Solaris Guest Additions: Added support for the Additions to be installed into an alternate root path ('pkgadd -R') Solaris Guest Additions: Removed requirement to reboot VM after uninstalling GAs RDP: Fix possible crash when connecting with the Apple Silicon variant of the Microsoft Remote Desktop application (bug #21820). BIOS: Fixed handle number used for DMI OEM table (bug #19781) ======= >>>>>>> ./virtualbox.changes.new OBS-URL: https://build.opensuse.org/request/show/1142681 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=720
2024-01-29 23:31:23 +01:00
--- VirtualBox-7.0.14.orig/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
+++ VirtualBox-7.0.14/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
@@ -4537,9 +4537,11 @@ static int supdrvTscDeltaThreadWait(PSUP
*/
static void supdrvTscDeltaThreadStartMeasurement(PSUPDRVDEVEXT pDevExt, bool fForceAll)
{
+ if (!pDevExt || ! pDevExt->hTscDeltaSpinlock)
+ return;
+ RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
if (pDevExt->hTscDeltaThread != NIL_RTTHREAD)
{
- RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
if ( pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_Listening
|| pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_Measuring)
{
@@ -4550,9 +4552,9 @@ static void supdrvTscDeltaThreadStartMea
else if ( pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_WaitAndMeasure
&& fForceAll)
pDevExt->fTscThreadRecomputeAllDeltas = true;
- RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
RTThreadUserSignal(pDevExt->hTscDeltaThread);
}
+ RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
}