VirtualBox

Changeset 100708 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jul 26, 2023 1:16:19 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158558
Message:

VMM/NEMR3Native-darwin-armv8.cpp: Query ID registers and put them in a struct for passing it down to CPUM later on (ID registers are privileged and only accessible from EL1 popposed to the CPUID mechanism on x86, so they need support from the hypervisor interface), bugref:10390

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/NEMInternal.h

    r100705 r100708  
    156156/** Pointer to a MMIO2 tracking region. */
    157157typedef NEMHVMMIO2REGION *PNEMHVMMIO2REGION;
     158
     159/**
     160 * Hypervisor.framework ARMv8 ID registers.
     161 */
     162typedef struct HVIDREGS
     163{
     164    uint64_t                    u64IdDfReg0El1;
     165    uint64_t                    u64IdDfReg1El1;
     166    uint64_t                    u64IdIsaReg0El1;
     167    uint64_t                    u64IdIsaReg1El1;
     168    uint64_t                    u64IdMmfReg0El1;
     169    uint64_t                    u64IdMmfReg1El1;
     170    uint64_t                    u64IdPfReg0El1;
     171    uint64_t                    u64IdPfReg1El1;
     172    uint64_t                    u64ClidrEl1;
     173    uint64_t                    u64CtrEl0;
     174    uint64_t                    u64DczidEl1;
     175} HVIDREGS;
     176/** Pointer to the ID registers struct. */
     177typedef HVIDREGS *PHVIDREGS;
     178/** Pointer to the const ID registers struct. */
     179typedef const HVIDREGS *PCHVIDREGS;
    158180# endif
    159181
     
    313335    /** Dirty tracking slots. */
    314336    NEMHVMMIO2REGION            aMmio2DirtyTracking[8];
     337    /** The vCPU config. */
     338    hv_vcpu_config_t            hVCpuCfg;
     339    /** The ID registers. */
     340    HVIDREGS                    IdRegs;
    315341    /** @} */
    316342# else
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