VirtualBox

Changeset 44394 in vbox for trunk


Ignore:
Timestamp:
Jan 26, 2013 5:53:53 PM (12 years ago)
Author:
vboxsync
Message:

+VMMR3GetCpuByIdU, -FNATOMICHANDLER

Location:
trunk
Files:
3 edited

Legend:

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

    r43930 r44394  
    44
    55/*
    6  * Copyright (C) 2006-2010 Oracle Corporation
     6 * Copyright (C) 2006-2013 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    113113
    114114/**
    115  * VMMR3AtomicExecuteHandler callback function.
    116  *
    117  * @returns VBox status code.
    118  * @param   pVM     Pointer to the shared VM structure.
    119  * @param   pvUser  User specified argument
    120  *
    121  * @todo missing prefix.
    122  */
    123 typedef DECLCALLBACK(int) FNATOMICHANDLER(PVM pVM, void *pvUser);
    124 /** Pointer to a FNMMATOMICHANDLER(). */
    125 typedef FNATOMICHANDLER *PFNATOMICHANDLER;
    126 
    127 /**
    128115 * Rendezvous callback.
    129116 *
     
    224211
    225212
    226 VMMDECL(RTRCPTR)     VMMGetStackRC(PVMCPU pVCpu);
    227 VMMDECL(VMCPUID)     VMMGetCpuId(PVM pVM);
    228 VMMDECL(PVMCPU)      VMMGetCpu(PVM pVM);
    229 VMMDECL(PVMCPU)      VMMGetCpu0(PVM pVM);
    230 VMMDECL(PVMCPU)      VMMGetCpuById(PVM pVM, VMCPUID idCpu);
    231 VMMDECL(uint32_t)    VMMGetSvnRev(void);
    232 VMMDECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM);
    233 VMMDECL(void)        VMMTrashVolatileXMMRegs(void);
     213VMM_INT_DECL(RTRCPTR)       VMMGetStackRC(PVMCPU pVCpu);
     214VMMDECL(VMCPUID)            VMMGetCpuId(PVM pVM);
     215VMMDECL(PVMCPU)             VMMGetCpu(PVM pVM);
     216VMMDECL(PVMCPU)             VMMGetCpu0(PVM pVM);
     217VMMDECL(PVMCPU)             VMMGetCpuById(PVM pVM, VMCPUID idCpu);
     218VMMR3DECL(PVMCPU)           VMMR3GetCpuByIdU(PUVM pVM, VMCPUID idCpu);
     219VMM_INT_DECL(uint32_t)      VMMGetSvnRev(void);
     220VMM_INT_DECL(VMMSWITCHER)   VMMGetSwitcher(PVM pVM);
     221VMM_INT_DECL(void)          VMMTrashVolatileXMMRegs(void);
    234222
    235223/** @def VMMIsHwVirtExtForced
     
    241229 * @returns true / false.
    242230 * @param   pVM     Pointer to the shared VM structure.
     231 * @internal
    243232 */
    244233#define VMMIsHwVirtExtForced(pVM)   ((pVM)->fHwVirtExtForced)
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r41965 r44394  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    174174 * @param   pVCpu       Pointer to the VMCPU.
    175175 */
    176 VMMDECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu)
     176VMM_INT_DECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu)
    177177{
    178178    return (RTRCPTR)pVCpu->vmm.s.pbEMTStackBottomRC;
     
    186186 *
    187187 * @param   pVM         Pointer to the VM.
     188 * @internal
    188189 */
    189190VMMDECL(VMCPUID) VMMGetCpuId(PVM pVM)
     
    237238 *
    238239 * @param   pVM         Pointer to the VM.
     240 * @internal
    239241 */
    240242VMMDECL(PVMCPU) VMMGetCpu(PVM pVM)
     
    291293 * @returns The VMCPU pointer.
    292294 * @param   pVM         Pointer to the VM.
     295 * @internal
    293296 */
    294297VMMDECL(PVMCPU) VMMGetCpu0(PVM pVM)
     
    306309 * @param   pVM         Pointer to the VM.
    307310 * @param   idCpu       The ID of the virtual CPU.
     311 * @internal
    308312 */
    309313VMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, RTCPUID idCpu)
     
    322326 * @returns VBOX_SVN_REV.
    323327 */
    324 VMMDECL(uint32_t) VMMGetSvnRev(void)
     328VMM_INT_DECL(uint32_t) VMMGetSvnRev(void)
    325329{
    326330    return VBOX_SVN_REV;
     
    334338 * @param   pVM             Pointer to the VM.
    335339 */
    336 VMMDECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM)
     340VMM_INT_DECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM)
    337341{
    338342    return pVM->vmm.s.enmSwitcher;
  • trunk/src/VBox/VMM/VMMR3/VMM.cpp

    r44340 r44394  
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9696#endif
    9797#include <VBox/vmm/ssm.h>
     98#include <VBox/vmm/ftm.h>
    9899#include <VBox/vmm/tm.h>
    99100#include "VMMInternal.h"
    100101#include "VMMSwitcher.h"
    101102#include <VBox/vmm/vm.h>
    102 #include <VBox/vmm/ftm.h>
     103#include <VBox/vmm/uvm.h>
    103104
    104105#include <VBox/err.h>
     
    961962
    962963/**
     964 * Returns the VMCPU of the specified virtual CPU.
     965 *
     966 * @returns The VMCPU pointer. NULL if @a idCpu or @a pUVM is invalid.
     967 *
     968 * @param   pUVM        The user mode VM handle.
     969 * @param   idCpu       The ID of the virtual CPU.
     970 */
     971VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu)
     972{
     973    UVM_ASSERT_VALID_EXT_RETURN(pUVM, NULL);
     974    AssertReturn(idCpu < pUVM->cCpus, NULL);
     975    VM_ASSERT_VALID_EXT_RETURN(pUVM->pVM, NULL);
     976    return &pUVM->pVM->aCpus[idCpu];
     977}
     978
     979
     980/**
    963981 * Gets the pointer to a buffer containing the R0/RC RTAssertMsg2Weak output.
    964982 *
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