VirtualBox

Changeset 82817 in vbox


Ignore:
Timestamp:
Jan 22, 2020 4:17:26 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135786
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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r82815 r82817  
    34243424/** The size of the Virtual-APIC page (in pages). */
    34253425#define VMX_V_VIRT_APIC_PAGES                                   1
    3426 
    3427 /** Virtual X2APIC MSR range start. */
    3428 #define VMX_V_VIRT_APIC_MSR_START                               0x800
    3429 /** Virtual X2APIC MSR range end. */
    3430 #define VMX_V_VIRT_APIC_MSR_END                                 0x8ff
    34313426
    34323427/** The size of the VMREAD/VMWRITE bitmap (in bytes). */
  • 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.

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