VirtualBox

Changeset 44394 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 26, 2013 5:53:53 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83368
Message:

+VMMR3GetCpuByIdU, -FNATOMICHANDLER

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette