~ubuntu-branches/ubuntu/trusty/virtualbox/trusty-proposed

« back to all changes in this revision

Viewing changes to src/VBox/VMM/VMMR3/VMEmt.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-03-07 16:38:36 UTC
  • mfrom: (1.1.13) (3.1.20 experimental)
  • Revision ID: package-import@ubuntu.com-20130307163836-p93jpbgx39tp3gb4
Tags: 4.2.8-dfsg-0ubuntu1
* New upstream release. (Closes: #691148)
  - Fixes compatibility with kernel 3.8. (Closes: #700823; LP: #1101867)
* Switch to my @debian.org email address.
* Move package to contrib as virtualbox 4.2 needs a non-free compiler to
  build the BIOS.
* Build-depend on libdevmapper-dev.
* Refresh patches.
  - Drop 36-fix-ftbfs-xserver-112.patch, cve-2012-3221.patch,
    CVE-2013-0420.patch 37-kcompat-3.6.patch and 38-kcompat-3.7.patch.
* Drop all virtualbox-ose transitional packages.
* Drop the virtualbox-fuse package as vdfuse fails to build with
  virtualbox 4.2.
* Update install files and VBox.sh.
* Bump required kbuild version to 0.1.9998svn2577.
* Fix path to VBoxCreateUSBNode.sh in virtualbox.postinst. (Closes: #700479)
* Add an init script to virtuabox-guest-x11 which loads the vboxvideo
  kernel module. The X Server 1.13 doesn't load it anymore. (Closes: #686994)
* Update man pages. (Closes: #680053)
* Add 36-python-multiarch.patch from Rico Tzschichholz to fix detection of
  python in multiarch paths using pkg-config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 */
5
5
 
6
6
/*
7
 
 * Copyright (C) 2006-2007 Oracle Corporation
 
7
 * Copyright (C) 2006-2012 Oracle Corporation
8
8
 *
9
9
 * This file is part of VirtualBox Open Source Edition (OSE), as
10
10
 * available from http://www.virtualbox.org. This file is free software;
24
24
#include <VBox/vmm/dbgf.h>
25
25
#include <VBox/vmm/em.h>
26
26
#include <VBox/vmm/pdmapi.h>
27
 
#include <VBox/vmm/rem.h>
 
27
#ifdef VBOX_WITH_REM
 
28
# include <VBox/vmm/rem.h>
 
29
#endif
28
30
#include <VBox/vmm/tm.h>
29
31
#include "VMInternal.h"
30
32
#include <VBox/vmm/vm.h>
402
404
 * Initialize the configuration of halt method 1 & 2.
403
405
 *
404
406
 * @return VBox status code. Failure on invalid CFGM data.
405
 
 * @param   pVM     The VM handle.
 
407
 * @param   pVM     Pointer to the VM.
406
408
 */
407
409
static int vmR3HaltMethod12ReadConfigU(PUVM pUVM)
408
410
{
664
666
    PVMCPU  pVCpu = pUVCpu->pVCpu;
665
667
    PVM     pVM   = pUVCpu->pVM;
666
668
    Assert(VMMGetCpu(pVM) == pVCpu);
 
669
    NOREF(u64Now);
667
670
 
668
671
    /*
669
672
     * Halt loop.
819
822
                AssertRC(rc);
820
823
            }
821
824
        }
 
825
#ifdef VBOX_WITH_REM
822
826
        else if (enmState == VMCPUSTATE_STARTED_EXEC_REM)
823
827
        {
824
828
            if (!(fFlags & VMNOTIFYFF_FLAGS_DONE_REM))
825
829
                REMR3NotifyFF(pUVCpu->pVM);
826
830
        }
 
831
#endif
827
832
    }
828
833
}
829
834
 
950
955
        int rc = RTSemEventSignal(pUVCpu->vm.s.EventSemWait);
951
956
        AssertRC(rc);
952
957
    }
 
958
#ifdef VBOX_WITH_REM
953
959
    else if (   !(fFlags & VMNOTIFYFF_FLAGS_DONE_REM)
954
960
             && pUVCpu->pVCpu
955
961
             && pUVCpu->pVCpu->enmState == VMCPUSTATE_STARTED_EXEC_REM)
956
962
        REMR3NotifyFF(pUVCpu->pVM);
 
963
#endif
957
964
}
958
965
 
959
966
 
1032
1039
 *
1033
1040
 * @returns VINF_SUCCESS unless a fatal error occurred. In the latter
1034
1041
 *          case an appropriate status code is returned.
1035
 
 * @param   pVM         VM handle.
1036
 
 * @param   pVCpu       VMCPU handle.
 
1042
 * @param   pVM         Pointer to the VM.
 
1043
 * @param   pVCpu       Pointer to the VMCPU.
1037
1044
 * @param   fIgnoreInterrupts   If set the VM_FF_INTERRUPT flags is ignored.
1038
1045
 * @thread  The emulation thread.
1039
1046
 */
1181
1188
 * Rendezvous callback that will be called once.
1182
1189
 *
1183
1190
 * @returns VBox strict status code.
1184
 
 * @param   pVM                 VM handle.
1185
 
 * @param   pVCpu               The VMCPU handle for the calling EMT.
 
1191
 * @param   pVM                 Pointer to the VM.
 
1192
 * @param   pVCpu               Pointer to the VMCPU of the calling EMT.
1186
1193
 * @param   pvUser              The new g_aHaltMethods index.
1187
1194
 */
1188
1195
static DECLCALLBACK(VBOXSTRICTRC) vmR3SetHaltMethodCallback(PVM pVM, PVMCPU pVCpu, void *pvUser)