VirtualBox

Changeset 82817 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 22, 2020 4:17:26 AM (5 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 Use x2APIC range defines from x86.h now that it's no longer different from what was specified in the VT-x spec prior to Jan 2019.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h

    r82705 r82817  
    43614361    if (pVmcs->u32ProcCtls2 & VMX_PROC_CTLS2_APIC_REG_VIRT)
    43624362    {
    4363         /*
    4364          * Intel has different ideas in the x2APIC spec. vs the VT-x spec. as to
    4365          * what the end of the valid x2APIC MSR range is. Hence the use of different
    4366          * macros here.
    4367          *
    4368          * See Intel spec. 10.12.1.2 "x2APIC Register Address Space".
    4369          * See Intel spec. 29.5 "Virtualizing MSR-based APIC Accesses".
    4370          */
    4371         if (   idMsr >= VMX_V_VIRT_APIC_MSR_START
    4372             && idMsr <= VMX_V_VIRT_APIC_MSR_END)
     4363        if (   idMsr >= MSR_IA32_X2APIC_START
     4364            && idMsr <= MSR_IA32_X2APIC_END)
    43734365        {
    43744366            uint16_t const offReg   = (idMsr & 0xff) << 4;
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