VirtualBox

Changeset 36041 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 21, 2011 4:04:53 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70151
Message:

Main/VMM: Use UVM w/ refcounting - part 1.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r35361 r36041  
    140140
    141141/** @def UVM_ASSERT_VALID_EXT_RETURN
    142  * Asserts a the VM handle is valid for external access, i.e. not being
    143  * destroy or terminated.
     142 * Asserts a user mode VM handle is valid for external access.
    144143 */
    145 #define UVM_ASSERT_VALID_EXT_RETURN(pVM, rc) \
    146         AssertMsgReturn(    RT_VALID_ALIGNED_PTR(pVM, PAGE_SIZE) \
    147                         &&  (pUVM)->u32Magic == UVM_MAGIC, \
    148                         ("pUVM=%p u32Magic=%#x\n", (pUVM), \
    149                          RT_VALID_ALIGNED_PTR(pVM, PAGE_SIZE) ? (pUVM)->u32Magic : 0), \
    150                         (rc))
     144#define UVM_ASSERT_VALID_EXT_RETURN(a_pUVM, a_rc) \
     145        AssertMsgReturn(    RT_VALID_ALIGNED_PTR(a_pUVM, PAGE_SIZE) \
     146                        &&  (a_pUVM)->u32Magic == UVM_MAGIC, \
     147                        ("a_pUVM=%p u32Magic=%#x\n", (a_pUVM), \
     148                         RT_VALID_ALIGNED_PTR(a_pUVM, PAGE_SIZE) ? (a_pUVM)->u32Magic : 0), \
     149                        (a_rc))
    151150
    152151#endif
  • trunk/include/VBox/vmm/vmapi.h

    r35810 r36041  
    344344VMMR3DECL(PVM)  VMR3EnumVMs(PVM pVMPrev);
    345345
     346VMMR3DECL(PVM)          VMR3GetVM(PUVM pUVM);
     347VMMR3DECL(PUVM)         VMR3GetUVM(PVM pVM);
     348VMMR3DECL(uint32_t)     VMR3RetainUVM(PUVM pUVM);
     349VMMR3DECL(uint32_t)     VMR3ReleaseUVM(PUVM pUVM);
     350VMMR3DECL(const char *) VMR3GetName(PUVM pUVM);
     351VMMR3DECL(PRTUUID)      VMR3GetUuid(PUVM pUVM, PRTUUID pUuid);
     352VMMR3DECL(VMSTATE)      VMR3GetState(PVM pVM);
     353VMMR3DECL(VMSTATE)      VMR3GetStateU(PUVM pUVM);
     354VMMR3DECL(const char *) VMR3GetStateName(VMSTATE enmState);
     355
    346356/**
    347357 * VM destruction callback.
     
    357367VMMR3DECL(int)      VMR3AtStateRegister(PVM pVM, PFNVMATSTATE pfnAtState, void *pvUser);
    358368VMMR3DECL(int)      VMR3AtStateDeregister(PVM pVM, PFNVMATSTATE pfnAtState, void *pvUser);
    359 VMMR3DECL(VMSTATE)  VMR3GetState(PVM pVM);
    360 VMMR3DECL(const char *) VMR3GetStateName(VMSTATE enmState);
    361369VMMR3DECL(bool)     VMR3TeleportedAndNotFullyResumedYet(PVM pVM);
    362370VMMR3DECL(int)      VMR3AtErrorRegister(PVM pVM, PFNVMATERROR pfnAtError, void *pvUser);
     
    409417VMMR3DECL(int)              VMR3HotUnplugCpu(PVM pVM, VMCPUID idCpu);
    410418VMMR3DECL(int)              VMR3HotPlugCpu(PVM pVM, VMCPUID idCpu);
    411 VMMR3DECL(int)              VMR3SetCpuExecutionCap(PVM pVM, unsigned ulExecutionCap);
     419VMMR3DECL(int)              VMR3SetCpuExecutionCap(PVM pVM, uint32_t uCpuExecutionCap);
    412420/** @} */
    413421#endif /* IN_RING3 */
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