VirtualBox

Ignore:
Timestamp:
Jul 11, 2014 5:49:50 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM: Get system-reset MSR working, added EOI, TPR, ICR APIC MSR read/writes.

File:
1 edited

Legend:

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

    r51979 r51980  
    9393                       //| GIM_HV_BASE_FEAT_BASIC_SYNTH_IC
    9494                       //| GIM_HV_BASE_FEAT_SYNTH_TIMER_MSRS
    95                        //| GIM_HV_BASE_FEAT_APIC_ACCESS_MSRS
     95                       | GIM_HV_BASE_FEAT_APIC_ACCESS_MSRS
    9696                       | GIM_HV_BASE_FEAT_HYPERCALL_MSRS
    9797                       | GIM_HV_BASE_FEAT_VP_ID_MSR
     
    105105
    106106        pHv->uMiscFeat = GIM_HV_MISC_FEAT_TIMER_FREQ;
     107
     108        pHv->uHyperHints = GIM_HV_HINT_MSR_FOR_SYS_RESET;
    107109    }
    108110
     
    190192    HyperLeaf.uEcx         = pHv->uPowMgmtFeat;
    191193    HyperLeaf.uEdx         = pHv->uMiscFeat;
     194    rc = CPUMR3CpuIdInsert(pVM, &HyperLeaf);
     195    AssertLogRelRCReturn(rc, rc);
     196
     197    HyperLeaf.uLeaf        = UINT32_C(0x40000004);
     198    HyperLeaf.uEax         = pHv->uHyperHints;
     199    HyperLeaf.uEbx         = 0xffffffff;
     200    HyperLeaf.uEcx         = 0;
     201    HyperLeaf.uEdx         = 0;
    192202    rc = CPUMR3CpuIdInsert(pVM, &HyperLeaf);
    193203    AssertLogRelRCReturn(rc, rc);
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