VirtualBox

Changeset 19995 in vbox


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

Introduced PDMHasIoApic.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmapi.h

    r19682 r19995  
    4646VMMDECL(int)    PDMIsaSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level);
    4747VMMDECL(int)    PDMIoApicSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level);
     48VMMDECL(bool)   PDMHasIoApic(PVM pVM);
    4849VMMDECL(int)    PDMApicHasPendingIrq(PVM pVM, bool *pfPending);
    4950VMMDECL(int)    PDMApicSetBase(PVM pVM, uint64_t u64Base);
  • 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