Changeset 54385 in vbox
- Timestamp:
- Feb 23, 2015 3:21:50 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98482
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r54308 r54385 5 5 6 6 # 7 # Copyright (C) 2006-201 3Oracle Corporation7 # Copyright (C) 2006-2015 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 103 103 ifdef VBOX_WITH_RAW_MODE 104 104 VBoxVMM_DEFS += VBOX_WITH_RAW_MODE VBOX_WITH_RAW_MODE_NOT_R0 105 endif 106 ifdef VBOX_WITH_PDM_AUDIO_DRIVER 107 VBoxVMM_DEFS += VBOX_WITH_PDM_AUDIO_DRIVER 105 108 endif 106 109 ifdef VBOX_WITH_VMM_R0_SWITCH_STACK -
trunk/src/VBox/VMM/VMMR3/PDM.cpp
r53442 r54385 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 278 278 *******************************************************************************/ 279 279 /** The PDM saved state version. */ 280 #define PDM_SAVED_STATE_VERSION 4 281 #define PDM_SAVED_STATE_VERSION_PRE_NMI_FF 3 280 #define PDM_SAVED_STATE_VERSION 5 281 /** Before the PDM audio architecture was introduced there was an "AudioSniffer" 282 * device which took care of multiplexing input/output audio data from/to various places. 283 * Thus this device is not needed/used anymore. */ 284 #define PDM_SAVED_STATE_VERSION_PRE_PDM_AUDIO 4 285 #define PDM_SAVED_STATE_VERSION_PRE_NMI_FF 3 282 286 283 287 /** The number of nanoseconds a suspend callback needs to take before … … 897 901 */ 898 902 if ( uVersion != PDM_SAVED_STATE_VERSION 899 && uVersion != PDM_SAVED_STATE_VERSION_PRE_NMI_FF) 903 && uVersion != PDM_SAVED_STATE_VERSION_PRE_NMI_FF 904 && uVersion != PDM_SAVED_STATE_VERSION_PRE_PDM_AUDIO) 900 905 { 901 906 AssertMsgFailed(("Invalid version uVersion=%d!\n", uVersion)); … … 1018 1023 PPDMDEVINS pDevIns; 1019 1024 for (pDevIns = pVM->pdm.s.pDevInstances; pDevIns; pDevIns = pDevIns->Internal.s.pNextR3) 1020 if ( ! strcmp(szName, pDevIns->pReg->szName)1025 if ( !RTStrCmp(szName, pDevIns->pReg->szName) 1021 1026 && pDevIns->iInstance == iInstance) 1022 1027 { … … 1027 1032 break; 1028 1033 } 1034 1029 1035 if (!pDevIns) 1030 1036 { 1031 LogRel(("Device '%s'/%d not found in current config\n", szName, iInstance)); 1032 if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT) 1033 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Device '%s'/%d not found in current config"), szName, iInstance); 1037 bool fSkip = false; 1038 1039 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 1040 /* Skip the non-existing "AudioSniffer" device stored in the saved state. */ 1041 if ( uVersion <= PDM_SAVED_STATE_VERSION_PRE_PDM_AUDIO 1042 && !RTStrCmp(szName, "AudioSniffer")) 1043 fSkip = true; 1044 #endif 1045 if (!fSkip) 1046 { 1047 LogRel(("Device '%s'/%d not found in current config\n", szName, iInstance)); 1048 if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT) 1049 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Device '%s'/%d not found in current config"), szName, iInstance); 1050 } 1034 1051 } 1035 1052 } -
trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp
r51897 r54385 172 172 return VINF_SUCCESS; 173 173 } 174 Log2(("PDM: cDevs=% d!\n", cDevs));174 Log2(("PDM: cDevs=%u\n", cDevs)); 175 175 176 176 /*
Note:
See TracChangeset
for help on using the changeset viewer.