Changeset 43930 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Nov 21, 2012 3:36:39 PM (12 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r43884 r43930 1535 1535 */ 1536 1536 #if RT_INLINE_ASM_EXTERNAL || HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 1537 DECLASM(int) VMXWriteV MCS32(uint32_t idxField, uint32_t u32Val);1537 DECLASM(int) VMXWriteVmcs32(uint32_t idxField, uint32_t u32Val); 1538 1538 #else 1539 DECLINLINE(int) VMXWriteV MCS32(uint32_t idxField, uint32_t u32Val)1539 DECLINLINE(int) VMXWriteVmcs32(uint32_t idxField, uint32_t u32Val) 1540 1540 { 1541 1541 int rc = VINF_SUCCESS; … … 1587 1587 */ 1588 1588 #if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 1589 DECLASM(int) VMXWriteV MCS64(uint32_t idxField, uint64_t u64Val);1589 DECLASM(int) VMXWriteVmcs64(uint32_t idxField, uint64_t u64Val); 1590 1590 #else 1591 VMMR0DECL(int) VMXWriteV MCS64Ex(PVMCPU pVCpu, uint32_t idxField, uint64_t u64Val);1592 1593 #define VMXWriteV MCS64(idxField, u64Val) VMXWriteVMCS64Ex(pVCpu, idxField, u64Val)1591 VMMR0DECL(int) VMXWriteVmcs64Ex(PVMCPU pVCpu, uint32_t idxField, uint64_t u64Val); 1592 1593 #define VMXWriteVmcs64(idxField, u64Val) VMXWriteVmcs64Ex(pVCpu, idxField, u64Val) 1594 1594 #endif 1595 1595 1596 1596 #if HC_ARCH_BITS == 64 1597 #define VMXWriteV MCS VMXWriteVMCS641597 #define VMXWriteVmcs VMXWriteVmcs64 1598 1598 #else 1599 #define VMXWriteV MCS VMXWriteVMCS321599 #define VMXWriteVmcs VMXWriteVmcs32 1600 1600 #endif /* HC_ARCH_BITS == 64 */ 1601 1601 … … 1625 1625 */ 1626 1626 #if RT_INLINE_ASM_EXTERNAL || HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 1627 DECLASM(int) VMXReadV MCS32(uint32_t idxField, uint32_t *pData);1627 DECLASM(int) VMXReadVmcs32(uint32_t idxField, uint32_t *pData); 1628 1628 #else 1629 DECLINLINE(int) VMXReadV MCS32(uint32_t idxField, uint32_t *pData)1629 DECLINLINE(int) VMXReadVmcsS32(uint32_t idxField, uint32_t *pData) 1630 1630 { 1631 1631 int rc = VINF_SUCCESS; … … 1680 1680 */ 1681 1681 #if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 1682 DECLASM(int) VMXReadV MCS64(uint32_t idxField, uint64_t *pData);1682 DECLASM(int) VMXReadVmcs64(uint32_t idxField, uint64_t *pData); 1683 1683 #else 1684 DECLINLINE(int) VMXReadV MCS64(uint32_t idxField, uint64_t *pData)1684 DECLINLINE(int) VMXReadVmcs64(uint32_t idxField, uint64_t *pData) 1685 1685 { 1686 1686 int rc; 1687 1687 1688 1688 uint32_t val_hi, val; 1689 rc = VMXReadV MCS32(idxField, &val);1690 rc |= VMXReadV MCS32(idxField + 1, &val_hi);1689 rc = VMXReadVmcs32(idxField, &val); 1690 rc |= VMXReadVmcs32(idxField + 1, &val_hi); 1691 1691 AssertRC(rc); 1692 1692 *pData = RT_MAKE_U64(val, val_hi); … … 1696 1696 1697 1697 #if HC_ARCH_BITS == 64 1698 # define VMXReadV MCS VMXReadVMCS641698 # define VMXReadVmcs VMXReadVmcs64 1699 1699 #else 1700 # define VMXReadV MCS VMXReadVMCS321700 # define VMXReadVmcs VMXReadVmcs32 1701 1701 #endif /* HC_ARCH_BITS == 64 */ 1702 1702 … … 1710 1710 #if HC_ARCH_BITS == 64 1711 1711 uint64_t uLastError = 0; 1712 int rc = VMXReadV MCS(VMX_VMCS32_RO_VM_INSTR_ERROR, &uLastError);1712 int rc = VMXReadVmcs(VMX_VMCS32_RO_VM_INSTR_ERROR, &uLastError); 1713 1713 AssertRC(rc); 1714 1714 return (uint32_t)uLastError; … … 1716 1716 #else /* 32-bit host: */ 1717 1717 uint32_t uLastError = 0; 1718 int rc = VMXReadV MCS32(VMX_VMCS32_RO_VM_INSTR_ERROR, &uLastError);1718 int rc = VMXReadVmcs32(VMX_VMCS32_RO_VM_INSTR_ERROR, &uLastError); 1719 1719 AssertRC(rc); 1720 1720 return uLastError; -
trunk/include/VBox/vmm/vmm.h
r43394 r43930 484 484 VMMR0DECL(void) VMMR0LogFlushDisable(PVMCPU pVCpu); 485 485 VMMR0DECL(void) VMMR0LogFlushEnable(PVMCPU pVCpu); 486 VMMR0DECL(bool) VMMR0IsLogFlushDisabled(PVMCPU pVCpu); 486 487 #else 487 488 #define VMMR0LogFlushDisable(pVCpu) do { } while(0) 488 489 #define VMMR0LogFlushEnable(pVCpu) do { } while(0) 490 #define VMMR0IsLogFlushDisabled(pVCpu) (true) 489 491 #endif 490 492
Note:
See TracChangeset
for help on using the changeset viewer.