VirtualBox

Changeset 13751 in vbox for trunk/include


Ignore:
Timestamp:
Nov 3, 2008 2:53:11 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38726
Message:

UVM updates

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r8155 r13751  
    3535
    3636#include <VBox/types.h>
     37
     38/**
     39 * Per virtual CPU ring-3 (user mode) data.
     40 */
     41typedef struct UVMCPU
     42{
     43    uint32_t     uFiller;
     44} UVMCPU;
    3745
    3846/**
     
    94102    } stam;
    95103
     104    /* Per virtual CPU data. */
     105    UVMCPU                      aCpu[1];
    96106} UVM;
    97107
  • trunk/include/VBox/vm.h

    r13749 r13751  
    9393    PVMRC                   pVMRC;
    9494    /** The CPU ID.
    95      * This is the index into the VM::aCpus array. */
     95     * This is the index into the VM::aCpu array. */
    9696    VMCPUID                 idCpu;
    9797    /** The ring-3 thread handle of the emulation thread for this CPU.
     
    283283 */
    284284#ifdef VBOX_WITH_SMP_GUESTS
    285 # define VMCPU_FF_SET(pVM, idCpu, fFlag)    ASMAtomicOrU32(&(pVM)->aCpus[idCpu].fForcedActions, (fFlag))
     285# define VMCPU_FF_SET(pVM, idCpu, fFlag)    ASMAtomicOrU32(&(pVM)->aCpu[idCpu].fForcedActions, (fFlag))
    286286#else
    287287# define VMCPU_FF_SET(pVM, idCpu, fFlag)    VM_FF_SET(pVM, fFlag)
     
    311311 */
    312312#ifdef VBOX_WITH_SMP_GUESTS
    313 # define VMCPU_FF_CLEAR(pVM, idCpu, fFlag)  ASMAtomicAndU32(&(pVM)->aCpus[idCpu].fForcedActions, ~(fFlag))
     313# define VMCPU_FF_CLEAR(pVM, idCpu, fFlag)  ASMAtomicAndU32(&(pVM)->aCpu[idCpu].fForcedActions, ~(fFlag))
    314314#else
    315315# define VMCPU_FF_CLEAR(pVM, idCpu, fFlag)  VM_FF_CLEAR(pVM, fFlag)
     
    332332 */
    333333#ifdef VBOX_WITH_SMP_GUESTS
    334 # define VMCPU_FF_ISSET(pVM, idCpu, fFlag)  (((pVM)->aCpus[idCpu].fForcedActions & (fFlag)) == (fFlag))
     334# define VMCPU_FF_ISSET(pVM, idCpu, fFlag)  (((pVM)->aCpu[idCpu].fForcedActions & (fFlag)) == (fFlag))
    335335#else
    336336# define VMCPU_FF_ISSET(pVM, idCpu, fFlag)  VM_FF_ISSET(pVM, fFlag)
     
    353353 */
    354354#ifdef VBOX_WITH_SMP_GUESTS
    355 # define VMCPU_FF_ISPENDING(pVM, idCpu, fFlags) ((pVM)->aCpus[idCpu].fForcedActions & (fFlags))
     355# define VMCPU_FF_ISPENDING(pVM, idCpu, fFlags) ((pVM)->aCpu[idCpu].fForcedActions & (fFlags))
    356356#else
    357357# define VMCPU_FF_ISPENDING(pVM, idCpu, fFlags) VM_FF_ISPENDING(pVM, fFlags)
     
    775775
    776776    /** VMCPU array for the configured number of virtual CPUs. */
    777     VMCPU       aCpus[1];
     777    VMCPU       aCpu[1];
    778778} VM;
    779779
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