VirtualBox

Changeset 53391 in vbox for trunk/src


Ignore:
Timestamp:
Nov 24, 2014 6:09:36 PM (10 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Fix crash while dumping hypervisor leafs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r53202 r53391  
    42894289        {
    42904290            pHyperLeafGst = cpumR3CpuIdGetLeaf(pVM->cpum.s.GuestInfo.paCpuIdLeavesR3, pVM->cpum.s.GuestInfo.cCpuIdLeaves,
    4291                                                        uHyperLeaf, 0 /* uSubLeaf */);
     4291                                               uHyperLeaf, 0 /* uSubLeaf */);
    42924292        }
    42934293
     
    42974297
    42984298        CPUMCPUIDLEAF  GuestLeaf;
    4299         uint32_t const cHyperGstMax = pHyperLeafGst->uEax;
     4299        uint32_t const cHyperGstMax = pHyperLeafGst ? pHyperLeafGst->uEax : 0;
    43004300        uint32_t const cHyperHstMax = Host.eax;
    43014301        uint32_t const cHyperMax    = RT_MAX(cHyperHstMax, cHyperGstMax);
Note: See TracChangeset for help on using the changeset viewer.

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