VirtualBox

Changeset 76548 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Dec 31, 2018 4:05:16 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Add functions for getting guest CR0, CR4 valid bits mask, in preparation for upcoming changes to nested VMX code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r76507 r76548  
    14141414VMM_INT_DECL(void)     CPUMSetGuestSpecCtrl(PVMCPU pVCpu, uint64_t uValue);
    14151415VMM_INT_DECL(uint64_t) CPUMGetGuestSpecCtrl(PVMCPU pVCpu);
     1416VMM_INT_DECL(uint64_t) CPUMGetGuestCR4ValidMask(PVM pVM);
    14161417/** @} */
    14171418
     
    15141515
    15151516#ifndef IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS
     1517
     1518/**
     1519 * Gets valid CR0 bits for the guest.
     1520 *
     1521 * @returns Valid CR0 bits.
     1522 */
     1523DECLINLINE(uint64_t) CPUMGetGuestCR0ValidMask(void)
     1524{
     1525    return (  X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS
     1526            | X86_CR0_ET | X86_CR0_NE | X86_CR0_WP | X86_CR0_AM
     1527            | X86_CR0_NW | X86_CR0_CD | X86_CR0_PG);
     1528}
    15161529
    15171530/**
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