VirtualBox

Changeset 19995 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 25, 2009 12:31:34 PM (16 years ago)
Author:
vboxsync
Message:

Introduced PDMHasIoApic.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r19785 r19995  
    147147
    148148/**
     149 * Returns presence of an IO-APIC
     150 *
     151 * @returns VBox true if IO-APIC is present
     152 * @param   pVM             VM handle.
     153 */
     154VMMDECL(bool) PDMHasIoApic(PVM pVM)
     155{
     156    return pVM->pdm.s.IoApic.CTX_SUFF(pDevIns) != NULL;
     157}
     158
     159
     160/**
    149161 * Set the APIC base.
    150162 *
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r19993 r19995  
    21632163     * @todo reduce overhead
    21642164     */
    2165     if (    CPUMIsGuestInLongModeEx(pCtx)
     2165    if (    PDMHasIoApic(pVM)
    21662166        &&  pVM->hwaccm.s.vmx.pAPIC)
    21672167    {
     
    34243424            RTGCPHYS GCPhys;
    34253425            PDMApicGetBase(pVM, &GCPhys);
     3426            GCPhys &= PAGE_BASE_GC_MASK;
    34263427            GCPhys += VMX_EXIT_QUALIFICATION_APIC_ACCESS_OFFSET(exitQualification);
    34273428
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