[arch-commits] Commit in virtualbox/trunk (008-fix-asm-barrier.patch PKGBUILD)
Sébastien Luttringer
seblu at archlinux.org
Fri Dec 18 19:21:43 UTC 2015
Date: Friday, December 18, 2015 @ 20:21:43
Author: seblu
Revision: 153690
upgpkg: virtualbox 5.0.10-3
- fix FS#45748
Added:
virtualbox/trunk/008-fix-asm-barrier.patch
Modified:
virtualbox/trunk/PKGBUILD
---------------------------+
008-fix-asm-barrier.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++
PKGBUILD | 4 ++-
2 files changed, 55 insertions(+), 1 deletion(-)
Added: 008-fix-asm-barrier.patch
===================================================================
--- 008-fix-asm-barrier.patch (rev 0)
+++ 008-fix-asm-barrier.patch 2015-12-18 19:21:43 UTC (rev 153690)
@@ -0,0 +1,52 @@
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp
+===================================================================
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp (revision 59178)
++++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp (revision 59179)
+@@ -1514,6 +1514,8 @@
+ static int vboxWddmVdmaSubmitHgsmi(PVBOXMP_DEVEXT pDevExt, PVBOXVDMAINFO pInfo, HGSMIOFFSET offDr)
+ {
+ VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr);
++ /* Make the compiler aware that the host has changed memory. */
++ ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+ #define vboxWddmVdmaSubmit vboxWddmVdmaSubmitHgsmi
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
+===================================================================
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp (revision 59178)
++++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp (revision 59179)
+@@ -1806,6 +1806,8 @@
+ if (offCmd != HGSMIOFFSET_VOID)
+ {
+ VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd);
++ /* Make the compiler aware that the host has changed memory. */
++ ASMCompilerBarrier();
+ rc = VBoxSHGSMICommandDoneSynch(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx, pHdr);
+ AssertRC(rc);
+ if (RT_SUCCESS(rc))
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp
+===================================================================
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp (revision 59178)
++++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp (revision 59179)
+@@ -117,6 +117,8 @@
+ static int vboxCmdVbvaSubmitHgsmi(PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, HGSMIOFFSET offDr)
+ {
+ VBoxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);
++ /* Make the compiler aware that the host has changed memory. */
++ ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+ #define vboxCmdVbvaSubmit vboxCmdVbvaSubmitHgsmi
+Index: src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
+===================================================================
+--- a/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp (revision 59178)
++++ b/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp (revision 59179)
+@@ -169,6 +169,8 @@
+ {
+ /* Submit the buffer to the host. */
+ VBoxVideoCmnPortWriteUlong(pCtx->port, offBuffer);
++ /* Make the compiler aware that the host has changed memory. */
++ ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-18 18:56:34 UTC (rev 153689)
+++ PKGBUILD 2015-12-18 19:21:43 UTC (rev 153690)
@@ -11,7 +11,7 @@
'virtualbox-guest-utils-nox'
'virtualbox-ext-vnc')
pkgver=5.0.10
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64')
url='http://virtualbox.org'
license=('GPL' 'custom')
@@ -64,6 +64,7 @@
'005-gsoap-build.patch'
'006-rdesktop-vrdp-keymap-path.patch'
'007-python2-path.patch'
+ '008-fix-asm-barrier.patch'
'010-no-update.patch'
)
md5sums=('b978c28a021d637489beb23f7b1380e2'
@@ -81,6 +82,7 @@
'ecfd13297d7753ebe7b8763ca5b792d9'
'd82a6f19be739341ed7f1cf4ee8070ca'
'188ea65918309f737ce28216c2b07c3b'
+ '55e63dadb2269a262d93b544f2d25de1'
'dfa08dc682c7668c8a6f0ffc3f44fece')
prepare() {
More information about the arch-commits
mailing list