VirtualBox

Changeset 108749 in vbox for trunk/src


Ignore:
Timestamp:
Mar 26, 2025 8:44:50 AM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168174
Message:

Main: bugref:10877 Dont' add the ACPI MADT entry for the GIC ITS if it isn't enabled for the VM.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp

    r108746 r108749  
    536536            InsertConfigInteger(pCfg, "Lpi",         1);
    537537        }
     538        else
     539            GCPhysIntcIts = cbMmioIntcIts = 0;
    538540
    539541        vrc = RTFdtNodeAddF(hFdt, "intc@%RGp", GCPhysIntcDist);                                         VRC();
  • trunk/src/VBox/Main/src-client/SystemTableBuilder.cpp

    r108742 r108749  
    525525    cbMadt += sizeof(*pGicr);
    526526
    527     /* Build the GITS. */
    528     PACPIMADTGICITS pGits = (PACPIMADTGICITS)(pGicr + 1);
    529     pGits->bType                    = ACPI_MADT_INTR_CTRL_TYPE_GIC_ITS;
    530     pGits->cbThis                   = sizeof(*pGits);
    531     pGits->u64PhysAddrBase          = m_GCPhysIntcIts;
    532     pGits->u32GicItsId              = 0;
    533 
    534     cbMadt += sizeof(*pGits);
     527    /* Build the GITS only if it's enabled for the VM. */
     528    if (m_GCPhysIntcIts)
     529    {
     530        Assert(m_cbMmioIntcIts > 0);
     531        Assert(m_GCPhysIntcIts != NIL_RTGCPHYS);
     532        PACPIMADTGICITS pGits = (PACPIMADTGICITS)(pGicr + 1);
     533        pGits->bType           = ACPI_MADT_INTR_CTRL_TYPE_GIC_ITS;
     534        pGits->cbThis          = sizeof(*pGits);
     535        pGits->u64PhysAddrBase = m_GCPhysIntcIts;
     536        pGits->u32GicItsId     = 0;
     537
     538        cbMadt += sizeof(*pGits);
     539    }
    535540
    536541    /* Finalize the MADT. */
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