~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: VMMDevHGCM.cpp $ */
 
1
/* $Id: VMMDevHGCM.cpp 33540 2010-10-28 09:27:05Z vboxsync $ */
2
2
/** @file
3
3
 * VMMDev - HGCM - Host-Guest Communication Manager Device.
4
4
 */
2198
2198
 
2199
2199
/** @todo no longer necessary to forward to EMT, but it might be more
2200
2200
 *        efficient...? */
2201
 
    /* Not safe to execute asynchroneously; forward to EMT */
 
2201
    /* Not safe to execute asynchronously; forward to EMT */
2202
2202
    int rc = VMR3ReqCallVoidNoWait(PDMDevHlpGetVM(pVMMDevState->pDevIns), VMCPUID_ANY,
2203
2203
                                   (PFNRT)hgcmCompletedWorker, 3, pInterface, result, pCmd);
2204
2204
    AssertRC(rc);
2390
2390
                AssertRCReturn(rc, rc);
2391
2391
            }
2392
2392
 
2393
 
            /* Allocate only VBOXHGCMCMD structure. vmmdevHGCMLoadStateDone will rellocate the command
2394
 
             * with aditional space for parameters and for pointer/pagelists buffer.
 
2393
            /* Allocate only VBOXHGCMCMD structure. vmmdevHGCMLoadStateDone will reallocate the command
 
2394
             * with additional space for parameters and for pointer/pagelists buffer.
2395
2395
             */
2396
2396
            PVBOXHGCMCMD pCmd = (PVBOXHGCMCMD)RTMemAllocZ (sizeof (VBOXHGCMCMD));
2397
2397
            AssertReturn(pCmd, VERR_NO_MEMORY);