VirtualBox

Changeset 108821 in vbox for trunk/src


Ignore:
Timestamp:
Apr 2, 2025 5:35:55 AM (13 days ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168267
Message:

Main: bugref:10877 Explicitly configure the GIC architecture revision to the VM as we need to expose it to the guest system registers via CPUM (primarily required for EFI firmware).

File:
1 edited

Legend:

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

    r108752 r108821  
    6262#include <VBox/vmm/vmapi.h>
    6363#include <VBox/err.h>
     64#include <VBox/gic.h>
    6465#include <VBox/param.h>
    6566#include <VBox/version.h>
     
    429430        InsertConfigInteger(pCpum, "NestedHWVirt", fNestedHWVirt ? true : false);
    430431
     432        /* GIC. */
     433        uint8_t const uGicArchRev = GIC_DIST_REG_PIDR2_ARCHREV_GICV3;
     434        InsertConfigInteger(pCpum, "GicArchRev", uGicArchRev);
    431435
    432436        /*
     
    529533        InsertConfigInteger(pInst, "Trusted",               1);
    530534        InsertConfigNode(pInst,    "Config",                &pCfg);
     535        InsertConfigInteger(pCfg,  "ArchRev",               uGicArchRev);
    531536        InsertConfigInteger(pCfg,  "DistributorMmioBase",   GCPhysIntcDist);
    532537        InsertConfigInteger(pCfg,  "RedistributorMmioBase", GCPhysIntcReDist);
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