VirtualBox

Changeset 83372 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Mar 23, 2020 2:52:24 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136577
Message:

GIM/KVM: Update system-time struct on demand. Fixes guests that rely on the struct being frequently updated, e.g. SLES 10 SP4 (see bugref:7270).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GIMR0Kvm.cpp

    r82968 r83372  
    5656    uint64_t uVirtNanoTS;
    5757    RTCCUINTREG fEFlags = ASMIntDisableFlags();
    58     uTsc        = TMCpuTickGetNoCheck(pVCpu) | UINT64_C(1);
    59     uVirtNanoTS = TMVirtualGetNoCheck(pVM)   | UINT64_C(1);
     58    uTsc        = TMCpuTickGetNoCheck(pVCpu);
     59    uVirtNanoTS = TMVirtualGetNoCheck(pVM);
    6060    ASMSetFlags(fEFlags);
    6161
     
    6868    {
    6969        PGIMKVMCPU pKvmCpu = &VMCC_GET_CPU(pVM, idCpu)->gim.s.u.KvmCpu;
    70         if (   !pKvmCpu->uTsc
    71             && !pKvmCpu->uVirtNanoTS)
    72         {
    73             pKvmCpu->uTsc        = uTsc;
    74             pKvmCpu->uVirtNanoTS = uVirtNanoTS;
    75         }
     70        pKvmCpu->uTsc        = uTsc;
     71        pKvmCpu->uVirtNanoTS = uVirtNanoTS;
    7672    }
    7773    RTSpinlockRelease(pKvm->hSpinlockR0);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette