~ubuntu-branches/ubuntu/trusty/virtualbox-ose/trusty

« back to all changes in this revision

Viewing changes to src/VBox/VMM/PGMMap.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-12-18 16:44:29 UTC
  • mfrom: (0.3.3 upstream) (0.4.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091218164429-jd34ccexpv5na11a
Tags: 3.1.2-dfsg-1ubuntu1
* Merge from Debian unstable (LP: #498219), remaining changes:
  - Disable update action
    - debian/patches/u01-disable-update-action.dpatch
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
* Fixes the following bugs:
  - Kernel module fails to build with Linux >= 2.6.32 (LP: #474625)
  - X.Org drivers need to be rebuilt against X-Server 1.7 (LP: #495935)
  - The *-source packages try to build the kernel modules even though the
    kernel headers aren't available (LP: #473334)
* Replace *-source packages with transitional packages for *-dkms.
* Adapt u01-disable-update-action.dpatch and u02-lp-integration.dpatch for
  new upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        pVM->pgm.s.pMappingsR0 = MMHyperR3ToR0(pVM, pNew);
214
214
    }
215
215
 
216
 
    for (unsigned i=0;i<pVM->cCPUs;i++)
 
216
    for (VMCPUID i = 0; i < pVM->cCpus; i++)
217
217
    {
218
218
        PVMCPU pVCpu = &pVM->aCpus[i];
219
219
        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
270
270
            pgmR3MapClearPDEs(pVM, pCur, pCur->GCPtr >> X86_PD_SHIFT);
271
271
            MMHyperFree(pVM, pCur);
272
272
 
273
 
            for (unsigned i=0;i<pVM->cCPUs;i++)
 
273
            for (VMCPUID i = 0; i < pVM->cCpus; i++)
274
274
            {
275
275
                PVMCPU pVCpu = &pVM->aCpus[i];
276
276
                VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
520
520
        return VINF_SUCCESS;
521
521
 
522
522
    /* Only applies to VCPU 0 as we don't support SMP guests with raw mode. */
523
 
    Assert(pVM->cCPUs == 1);
 
523
    Assert(pVM->cCpus == 1);
524
524
 
525
525
    PVMCPU pVCpu = &pVM->aCpus[0];
526
526
 
652
652
    pVM->pgm.s.GCPtrMappingFixed = GCPtrBase;
653
653
    pVM->pgm.s.cbMappingFixed    = cb;
654
654
 
655
 
    for (unsigned i=0;i<pVM->cCPUs;i++)
 
655
    for (VMCPUID i = 0; i < pVM->cCpus; i++)
656
656
    {
657
657
        PVMCPU pVCpu = &pVM->aCpus[i];
658
 
        pVCpu->pgm.s.fSyncFlags       &= ~PGM_SYNC_MONITOR_CR3;
 
658
        pVCpu->pgm.s.fSyncFlags &= ~PGM_SYNC_MONITOR_CR3;
659
659
        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
660
660
    }
661
661
    return VINF_SUCCESS;
688
688
    pVM->pgm.s.fMappingsFixed    = true;
689
689
    pVM->pgm.s.GCPtrMappingFixed = MM_HYPER_AREA_ADDRESS;
690
690
    pVM->pgm.s.cbMappingFixed    = cb;
691
 
    for (unsigned i=0;i<pVM->cCPUs;i++)
 
691
    for (VMCPUID i = 0; i < pVM->cCpus; i++)
692
692
    {
693
693
        PVMCPU pVCpu = &pVM->aCpus[i];
694
 
 
695
 
        pVCpu->pgm.s.fSyncFlags       &= ~PGM_SYNC_MONITOR_CR3;
 
694
        pVCpu->pgm.s.fSyncFlags &= ~PGM_SYNC_MONITOR_CR3;
696
695
        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
697
696
    }
698
697
    return VINF_SUCCESS;
717
716
    pVM->pgm.s.fMappingsFixed    = false;
718
717
    pVM->pgm.s.GCPtrMappingFixed = 0;
719
718
    pVM->pgm.s.cbMappingFixed    = 0;
720
 
    for (unsigned i=0;i<pVM->cCPUs;i++)
 
719
    for (VMCPUID i = 0; i < pVM->cCpus; i++)
721
720
    {
722
721
        PVMCPU pVCpu = &pVM->aCpus[i];
723
 
 
724
722
        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
725
723
    }
726
724
    return VINF_SUCCESS;
1160
1158
    STAM_PROFILE_START(&pVM->pgm.s.StatR3ResolveConflict, a);
1161
1159
 
1162
1160
    /* Raw mode only which implies one VCPU. */
1163
 
    Assert(pVM->cCPUs == 1);
 
1161
    Assert(pVM->cCpus == 1);
1164
1162
 
1165
1163
    pMapping->aGCPtrConflicts[pMapping->cConflicts & (PGMMAPPING_CONFLICT_MAX-1)] = GCPtrOldMapping;
1166
1164
    pMapping->cConflicts++;
1236
1234
    STAM_PROFILE_START(&pVM->pgm.s.StatR3ResolveConflict, a);
1237
1235
 
1238
1236
    /* Raw mode only which implies one VCPU. */
1239
 
    Assert(pVM->cCPUs == 1);
 
1237
    Assert(pVM->cCpus == 1);
1240
1238
    PVMCPU pVCpu = VMMGetCpu(pVM);
1241
1239
 
1242
1240
    pMapping->aGCPtrConflicts[pMapping->cConflicts & (PGMMAPPING_CONFLICT_MAX-1)] = GCPtrOldMapping;