Changeset 32431 in vbox
- Timestamp:
- Sep 11, 2010 6:02:17 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65796
- Location:
- trunk
- Files:
-
- 57 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r32370 r32431 2080 2080 * Resizes the given disk image to the given size. 2081 2081 * 2082 * @return VBox status 2082 * @return VBox status 2083 2083 * @return VERR_VD_IMAGE_READ_ONLY if image is not writable. 2084 2084 * @return VERR_NOT_SUPPORTED if this kind of image can be compacted, but -
trunk/include/VBox/pci.h
r32263 r32431 470 470 { 471 471 pPciDev->config[VBOX_PCI_CAPABILITY_LIST] = u8Offset; 472 } 472 } 473 473 474 474 /** -
trunk/include/VBox/pdmifs.h
r31251 r32431 2119 2119 * @param pInterface Pointer to this interface. 2120 2120 * @param guestInfo Pointer to Guest Additions information structure. 2121 2122 2121 * @thread The emulation thread. 2122 */ 2123 2123 DECLR3CALLBACKMEMBER(void, pfnUpdateGuestInfo2,(PPDMIVMMDEVCONNECTOR pInterface, const struct VBoxGuestInfo2 *pGuestInfo)); 2124 2124 -
trunk/include/VBox/settings.h
r32120 r32431 705 705 bool fAccelerate3D, 706 706 fAccelerate2DVideo; // requires settings version 1.8 (VirtualBox 3.1) 707 FirmwareType_T firmwareType; // requires settings version 1.9 (VirtualBox 3.1) 707 FirmwareType_T firmwareType; // requires settings version 1.9 (VirtualBox 3.1) 708 708 709 709 PointingHidType_T pointingHidType; // requires settings version 1.10 (VirtualBox 3.2) -
trunk/include/iprt/condvar.h
r31154 r32431 282 282 #endif 283 283 284 -
trunk/include/iprt/memtracker.h
r32125 r32431 200 200 #endif 201 201 202 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r32175 r32431 79 79 # VBoxDispD3D_DEFS += VBOXDISPMP_TEST 80 80 ifdef VBOXWDDM_WITH_VBVA 81 VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA 81 VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA 82 82 endif 83 83 … … 118 118 PROGRAMS += tstMvWnd 119 119 tstMvWnd_TEMPLATE = VBOXR3EXE 120 tstMvWnd_DEFS = UNICODE _UNICODE 120 tstMvWnd_DEFS = UNICODE _UNICODE 121 121 tstMvWnd_SOURCES = \ 122 122 wddm/dbg/tstMvWnd.cpp -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProv.cpp
r30252 r32431 69 69 70 70 71 /* 71 /* 72 72 * SetUsageScenario is the provider's cue that it's going to be asked for tiles 73 73 * in a subsequent call. This call happens after the user pressed CTRL+ALT+DEL 74 * and we need to handle the CPUS_LOGON event. 74 * and we need to handle the CPUS_LOGON event. 75 75 */ 76 76 HRESULT VBoxCredProv::SetUsageScenario(CREDENTIAL_PROVIDER_USAGE_SCENARIO cpUsageScenario, … … 105 105 { 106 106 hr = m_pCred->Initialize(m_cpUsageScenario, 107 s_rgCredProvFieldDescriptors, 107 s_rgCredProvFieldDescriptors, 108 108 s_rgFieldStatePairs); 109 109 } … … 134 134 case CPUS_CREDUI: 135 135 case CPUS_PLAP: 136 136 137 137 hr = E_NOTIMPL; 138 138 break; … … 149 149 150 150 151 /* 151 /* 152 152 * SetSerialization takes the kind of buffer that you would normally return to LogonUI for 153 153 * an authentication attempt. It's the opposite of ICredentialProviderCredential::GetSerialization. … … 168 168 169 169 170 /* 170 /* 171 171 * Called by LogonUI to give you a callback. Providers often use the callback if they 172 172 * some event would cause them to need to change the set of tiles (visible UI elements) 173 * that they enumerated. 173 * that they enumerated. 174 174 */ 175 175 HRESULT VBoxCredProv::Advise(ICredentialProviderEvents *pcpEvents, … … 187 187 /* 188 188 * Save advice context for later use when binding to 189 * certain ICredentialProviderEvents events. 189 * certain ICredentialProviderEvents events. 190 190 */ 191 191 m_upAdviseContext = upAdviseContext; … … 199 199 Log(("VBoxCredProv::UnAdvise\n")); 200 200 if (m_pCredProvEvents != NULL) 201 { 201 { 202 202 m_pCredProvEvents->Release(); 203 203 m_pCredProvEvents = NULL; … … 208 208 209 209 210 /* 210 /* 211 211 * Called by LogonUI to determine the number of fields in your tiles. This 212 212 * does mean that all your tiles must have the same number of fields. … … 248 248 249 249 250 /* 250 /* 251 251 * Sets pdwCount to the number of tiles that we wish to show at this time. 252 252 * Sets pdwDefault to the index of the tile which should be used as the default. … … 317 317 && ppCredProvCredential) 318 318 { 319 hr = m_pCred->QueryInterface(IID_ICredentialProviderCredential, 319 hr = m_pCred->QueryInterface(IID_ICredentialProviderCredential, 320 320 reinterpret_cast<void**>(ppCredProvCredential)); 321 321 } -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProv.h
r30252 r32431 91 91 92 92 /** Interface reference count. */ 93 LONG m_cRef; 93 LONG m_cRef; 94 94 /** Our one and only credential. */ 95 VBoxCredential *m_pCred; 96 /** Poller thread for credential lookup. */ 95 VBoxCredential *m_pCred; 96 /** Poller thread for credential lookup. */ 97 97 VBoxCredPoller *m_pPoller; 98 98 /** Used to tell our owner to re-enumerate credentials. */ 99 99 ICredentialProviderEvents *m_pCredProvEvents; 100 /** Used to tell our owner who we are when asking to re-enumerate credentials. */ 100 /** Used to tell our owner who we are when asking to re-enumerate credentials. */ 101 101 UINT_PTR m_upAdviseContext; 102 102 /** Saved usage scenario. */ -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredential.cpp
r30367 r32431 105 105 PWSTR *ppwszStored; 106 106 107 /* 107 /* 108 108 * Update domain name (can be NULL) and will 109 109 * be later replaced by the local computer name in the … … 138 138 else 139 139 { 140 /* 141 * Oky, no display name, but mabye it's a 140 /* 141 * Oky, no display name, but mabye it's a 142 142 * principal name from which we have to extract the 143 143 * domain from? ([email protected] -> jdoe in … … 175 175 176 176 177 /* 177 /* 178 178 * Initializes one credential with the field information passed in. 179 179 * Set the value of the SFI_USERNAME field to pwzUsername. … … 190 190 m_cpUS = cpus; 191 191 192 /* 192 /* 193 193 * Copy the field descriptors for each field. This is useful if you want to vary the 194 * field descriptors based on what Usage scenario the credential was created for. 194 * field descriptors based on what Usage scenario the credential was created for. 195 195 */ 196 196 for (DWORD i = 0; SUCCEEDED(hr) && i < ARRAYSIZE(m_rgCredProvFieldDescriptors); i++) … … 207 207 208 208 209 /* 209 /* 210 210 * LogonUI calls this in order to give us a callback in case we need to notify it of anything. 211 * Store this callback pointer for later use. 211 * Store this callback pointer for later use. 212 212 */ 213 213 HRESULT VBoxCredential::Advise(ICredentialProviderCredentialEvents* pcpce) … … 230 230 /* 231 231 * We're done with the current iteration, trigger a refresh of ourselves 232 * to reset credentials and to keep the logon UI clean (no stale entries anymore). 232 * to reset credentials and to keep the logon UI clean (no stale entries anymore). 233 233 */ 234 234 Reset(); 235 235 236 /* 236 /* 237 237 * Force a re-iteration of the provider (which will give zero credentials 238 * to try out because we just resetted our one and only a line above. 238 * to try out because we just resetted our one and only a line above. 239 239 */ 240 240 if (m_pProvider) … … 260 260 Log(("VBoxCredential::SetSelected\n")); 261 261 262 /* 262 /* 263 263 * Don't do auto logon here because it would retry too often with 264 264 * every credential field (user name, password, domain, ...) which makes … … 363 363 &dwTotalEntries, 364 364 &dwResumeHandle); 365 if ( (nStatus == NERR_Success) 365 if ( (nStatus == NERR_Success) 366 366 || (nStatus == ERROR_MORE_DATA)) 367 367 { … … 370 370 for (DWORD i = 0; i < dwEntriesRead; i++) 371 371 { 372 /* 373 * Search for the "display name" - that might be 372 /* 373 * Search for the "display name" - that might be 374 374 * "John Doe" or something similar the user recognizes easier 375 375 * and may not the same as the "account" name (e.g. "jdoe"). 376 376 */ 377 if ( pCurBuf 377 if ( pCurBuf 378 378 && pCurBuf->usri2_full_name 379 379 && StrCmpI(pwszDisplayName, pCurBuf->usri2_full_name) == 0) 380 380 { 381 /* 382 * Copy the real user name (e.g. "jdoe") to our 381 /* 382 * Copy the real user name (e.g. "jdoe") to our 383 383 * output buffer. 384 384 */ … … 411 411 } 412 412 413 Log(("VBoxCredential::TranslateAccountName: Returned nStatus=%ld, fFound=%s\n", 413 Log(("VBoxCredential::TranslateAccountName: Returned nStatus=%ld, fFound=%s\n", 414 414 nStatus, fFound ? "Yes" : "No")); 415 415 return fFound; … … 427 427 if (TranslateNameW(pwszName, NameUnknown, NameUserPrincipal, ppwszAccoutName, &cbLen)) 428 428 { 429 Log(("VBoxCredential::GetAccountName: Real ADS account name of '%ls' is '%ls'\n", 429 Log(("VBoxCredential::GetAccountName: Real ADS account name of '%ls' is '%ls'\n", 430 430 pwszName, ppwszAccoutName)); 431 431 } … … 442 442 { 443 443 dwErr = NO_ERROR; 444 444 445 445 } 446 446 #endif … … 514 514 /* Check to make sure dwFieldID is a legitimate index. */ 515 515 HRESULT hr; 516 if ( dwFieldID < ARRAYSIZE(m_rgCredProvFieldDescriptors) 516 if ( dwFieldID < ARRAYSIZE(m_rgCredProvFieldDescriptors) 517 517 && ppwszString) 518 518 { … … 524 524 525 525 /* 526 * Make a copy of the string and return that, the caller is responsible for freeing it. 526 * Make a copy of the string and return that, the caller is responsible for freeing it. 527 527 * Note that there can be empty fields (like a missing domain name); handle them 528 528 * by writing an empty string. … … 570 570 571 571 572 /* 572 /* 573 573 * Sets the value of a field which can accept a string as a value. 574 574 * This is called on each keystroke when a user types into an edit field. … … 577 577 PCWSTR pcwzString) 578 578 { 579 Log(("VBoxCredential::SetStringValue: dwFieldID=%ld, pcwzString=%ls\n", 579 Log(("VBoxCredential::SetStringValue: dwFieldID=%ld, pcwzString=%ls\n", 580 580 dwFieldID, pcwzString)); 581 581 … … 589 589 /* Validate parameters. */ 590 590 if ( dwFieldID < ARRAYSIZE(m_rgCredProvFieldDescriptors) 591 && ( CPFT_EDIT_TEXT == m_rgCredProvFieldDescriptors[dwFieldID].cpft 591 && ( CPFT_EDIT_TEXT == m_rgCredProvFieldDescriptors[dwFieldID].cpft 592 592 || CPFT_PASSWORD_TEXT == m_rgCredProvFieldDescriptors[dwFieldID].cpft)) 593 593 { … … 709 709 hr = UnicodeStringInitWithString(wszComputerName, &kil.LogonDomainName); 710 710 else 711 hr = UnicodeStringInitWithString(m_rgFieldStrings [SFI_DOMAINNAME], 711 hr = UnicodeStringInitWithString(m_rgFieldStrings [SFI_DOMAINNAME], 712 712 &kil.LogonDomainName); 713 713 … … 723 723 /* Allocate copies of, and package, the strings in a binary blob. */ 724 724 kil.MessageType = KerbInteractiveLogon; 725 hr = KerbInteractiveLogonPack(kil, 726 &pcpCredentialSerialization->rgbSerialization, 725 hr = KerbInteractiveLogonPack(kil, 726 &pcpCredentialSerialization->rgbSerialization, 727 727 &pcpCredentialSerialization->cbSerialization); 728 728 if (SUCCEEDED(hr)) … … 739 739 * By setting this to CPGSR_RETURN_CREDENTIAL_FINISHED we are letting logonUI know 740 740 * that we have all the information we need and it should attempt to submit the 741 * serialized credential. 741 * serialized credential. 742 742 */ 743 743 *pcpGetSerializationResponse = CPGSR_RETURN_CREDENTIAL_FINISHED; … … 759 759 760 760 761 /* 761 /* 762 762 * ReportResult is completely optional. Its purpose is to allow a credential to customize the string 763 763 * and the icon displayed in the case of a logon failure. For example, we have chosen to -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredential.h
r30367 r32431 124 124 LONG m_cRef; 125 125 /** The usage scenario for which we were enumerated. */ 126 CREDENTIAL_PROVIDER_USAGE_SCENARIO m_cpUS; 126 CREDENTIAL_PROVIDER_USAGE_SCENARIO m_cpUS; 127 127 /** Holding type and name of each field in the tile. */ 128 128 CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR m_rgCredProvFieldDescriptors[SFI_NUM_FIELDS]; 129 129 /** Holding state of each field in the tile. */ 130 FIELD_STATE_PAIR m_rgFieldStatePairs[SFI_NUM_FIELDS]; 130 FIELD_STATE_PAIR m_rgFieldStatePairs[SFI_NUM_FIELDS]; 131 131 /** Holding string value of each field. This is different from the name of 132 132 the field held in m_rgCredProvFieldDescriptors. */ 133 PWSTR m_rgFieldStrings[SFI_NUM_FIELDS]; 133 PWSTR m_rgFieldStrings[SFI_NUM_FIELDS]; 134 134 ICredentialProviderCredentialEvents *m_pCredProvCredentialEvents; 135 135 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r32249 r32431 197 197 SendMessageCallback(hViewer, WM_CHANGECBCHAIN, (WPARAM)pCtx->hwndNextInChain, (LPARAM)pCtx->hwndNextInChain, CBChainPingProc, (ULONG_PTR) pCtx); 198 198 } break; 199 199 200 200 case WM_CLOSE: 201 201 { -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r32182 r32431 120 120 121 121 #if 0 /* for valgrind */ 122 RT_ZERO(szCmd); 123 RT_ZERO(szArgs); 124 RT_ZERO(szEnv); 125 RT_ZERO(szUser); 122 RT_ZERO(szCmd); 123 RT_ZERO(szArgs); 124 RT_ZERO(szEnv); 125 RT_ZERO(szUser); 126 126 RT_ZERO(szPassword); 127 127 #endif -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r31982 r32431 338 338 { 339 339 ULONG ulError = LsaNtStatusToWinError(rcNt); 340 /* Skip session data which is not valid anymore because it may have been 340 /* Skip session data which is not valid anymore because it may have been 341 341 * already terminated. */ 342 342 if (ulError != ERROR_NO_SUCH_LOGON_SESSION) -
trunk/src/VBox/Additions/common/testcase/Makefile.kmk
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
-
trunk/src/VBox/Additions/common/testcase/tstPageFusion.cpp
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r31719 r32431 435 435 * [dentry] contains string encoded in coding system that corresponds 436 436 * to [sf_g]->nls, we must convert it to UTF8 here and pass down to 437 * [sf_make_path] which will allocate SHFLSTRING and fill it in 437 * [sf_make_path] which will allocate SHFLSTRING and fill it in 438 438 */ 439 439 int sf_path_from_dentry(const char *caller, struct sf_glob_info *sf_g, -
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r32412 r32431 216 216 { 217 217 AMPLIFIER *pAmplifier = NULL; 218 bool fIsLeft = false; 219 bool fIsRight = false; 218 bool fIsLeft = false; 219 bool fIsRight = false; 220 220 bool fIsOut = false; 221 221 bool fIsIn = false; … … 240 240 if (pAmplifier) 241 241 { 242 fIsOut = CODEC_SET_AMP_IS_OUT_DIRECTION(cmd); 243 fIsIn = CODEC_SET_AMP_IS_IN_DIRECTION(cmd); 244 fIsRight = CODEC_SET_AMP_IS_RIGHT_SIDE(cmd); 245 fIsLeft = CODEC_SET_AMP_IS_LEFT_SIDE(cmd); 242 fIsOut = CODEC_SET_AMP_IS_OUT_DIRECTION(cmd); 243 fIsIn = CODEC_SET_AMP_IS_IN_DIRECTION(cmd); 244 fIsRight = CODEC_SET_AMP_IS_RIGHT_SIDE(cmd); 245 fIsLeft = CODEC_SET_AMP_IS_LEFT_SIDE(cmd); 246 246 u8Index = CODEC_SET_AMP_INDEX(cmd); 247 247 if ( (!fIsLeft && !fIsRight) … … 254 254 if (fIsRight) 255 255 codecSetRegisterU8(&LIFIER_REGISTER(*pAmplifier, AMPLIFIER_IN, AMPLIFIER_RIGHT, u8Index), cmd, 0); 256 } 256 } 257 257 if (fIsOut) 258 258 { -
trunk/src/VBox/Devices/Audio/DevCodec.h
r31990 r32431 53 53 typedef uint32_t AMPLIFIER[AMPLIFIER_SIZE]; 54 54 #define AMPLIFIER_IN 0 55 #define AMPLIFIER_OUT 1 55 #define AMPLIFIER_OUT 1 56 56 #define AMPLIFIER_LEFT 1 57 57 #define AMPLIFIER_RIGHT 0 … … 68 68 uint32_t u32A_param; 69 69 AMPLIFIER B_params; 70 70 71 71 } DACNODE, *PDACNODE; 72 72 -
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r32335 r32431 351 351 uint32_t u32BdleCviLen; 352 352 uint32_t u32BdleCviPos; 353 bool fBdleCviIoc; 353 bool fBdleCviIoc; 354 354 } HDABDLEDESC, *PHDABDLEDESC; 355 355 … … 587 587 #define IS_INTERRUPT_OCCURED_AND_ENABLED(pState, num) \ 588 588 ( INTCTL_SX((pState), num) \ 589 && (SDSTS(pState, num) & HDA_REG_FIELD_FLAG_MASK(SDSTS, BCIS))) 589 && (SDSTS(pState, num) & HDA_REG_FIELD_FLAG_MASK(SDSTS, BCIS))) 590 590 bool fIrq = false; 591 591 if( INTCTL_CIE(pState) … … 887 887 || RIRBSTS_RINTFL(pState) 888 888 || HDA_REG_FLAG_VALUE(pState, CORBSTS, CMEI) 889 || STATESTS(pState)) 889 || STATESTS(pState)) 890 890 v |= RT_BIT(30); 891 891 #define HDA_IS_STREAM_EVENT(pState, stream) \ … … 893 893 || (SDSTS((pState),stream) & HDA_REG_FIELD_FLAG_MASK(SDSTS, FE)) \ 894 894 || (SDSTS((pState),stream) & HDA_REG_FIELD_FLAG_MASK(SDSTS, BCIS))) 895 #define MARK_STREAM(pState, stream, v) do {(v) |= HDA_IS_STREAM_EVENT((pState),stream) ? RT_BIT((stream)) : 0;}while(0) 895 #define MARK_STREAM(pState, stream, v) do {(v) |= HDA_IS_STREAM_EVENT((pState),stream) ? RT_BIT((stream)) : 0;}while(0) 896 896 MARK_STREAM(pState, 0, v); 897 897 MARK_STREAM(pState, 1, v); … … 1332 1332 /* Optionally write back the current DMA position. */ 1333 1333 if (pState->u64DPBase & DPBASE_ENABLED) 1334 PDMDevHlpPhysWrite(ICH6_HDASTATE_2_DEVINS(pState), 1334 PDMDevHlpPhysWrite(ICH6_HDASTATE_2_DEVINS(pState), 1335 1335 (pState->u64DPBase & DPBASE_ADDR_MASK) + u8Strm*8, pu32Lpib, sizeof(*pu32Lpib)); 1336 1336 -
trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c
r30351 r32431 129 129 nmbjumbo16 = nmbjumbo9 / 2; 130 130 #else 131 /* drvNATNetowrkUp_AllocBuf always requests mbuf from this 131 /* drvNATNetowrkUp_AllocBuf always requests mbuf from this 132 132 * zones, that require more buffers allocated on jumbo16 zone, 133 * in case of intensive communication like p2p and UDP benches. 133 * in case of intensive communication like p2p and UDP benches. 134 134 */ 135 135 nmbjumbo16 = nmbclusters; -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c
r30921 r32431 210 210 QStr2CStr(qw_qname, cname, sizeof(cname)); 211 211 cname_len = RTStrNLen(cname, sizeof(cname)); 212 /* Some guests like win-xp adds _dot_ after host name 212 /* Some guests like win-xp adds _dot_ after host name 213 213 * and after domain name (not passed with host resolver) 214 214 * that confuses host resolver. 215 215 */ 216 if ( cname_len > 2 216 if ( cname_len > 2 217 217 && cname[cname_len - 1] == '.' 218 218 && cname[cname_len - 2] == '.') -
trunk/src/VBox/Devices/Network/slirp/misc.c
r30421 r32431 420 420 void slirp_ext_m_free(PNATState pData, struct mbuf *m, uint8_t *pu8Buf) 421 421 { 422 423 if ( !pu8Buf 422 423 if ( !pu8Buf 424 424 && pu8Buf != mtod(m, uint8_t *)) 425 425 RTMemFree(pu8Buf); /* This buffer was allocated on heap */ -
trunk/src/VBox/Devices/Network/slirp/sbuf.c
r30426 r32431 279 279 } 280 280 #else /* VBOX_WITH_SLIRP_BSD_SBUF */ 281 void 281 void 282 282 sbappend (PNATState pData, struct socket *so, struct mbuf *m) 283 283 { -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r30421 r32431 1381 1381 1382 1382 /** 1383 * @note This function will free m! 1383 * @note This function will free m! 1384 1384 */ 1385 1385 static void arp_input(PNATState pData, struct mbuf *m) -
trunk/src/VBox/Devices/Network/slirp/socket.c
r30402 r32431 334 334 335 335 if (len > mss) 336 len -= len % mss; 336 len -= len % mss; 337 337 buf = RTMemAlloc(len); 338 338 if (buf == NULL) … … 341 341 return -1; 342 342 } 343 343 344 344 n = recv(so->s, buf, len, (so->so_tcpcb->t_force? MSG_OOB:0)); 345 345 if (n <= 0) … … 650 650 651 651 len = sbuf_len(sb); 652 652 653 653 n = send(so->s, sbuf_data(sb), len, (fUrg ? MSG_OOB : 0)); 654 654 if (n < 0) -
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r32429 r32431 5259 5259 5260 5260 LogFlowFunc(("pBackendData=%p uOffset=%#llx pIoCtx=%#p cbToRead=%u pcbActuallyRead=%p\n", 5261 5261 pvBackendData, uOffset, pIoCtx, cbToRead, pcbActuallyRead)); 5262 5262 5263 5263 if (uOffset + cbToRead > pImage->cbSize) -
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r32386 r32431 5720 5720 * Resizes the the given disk image to the given size. 5721 5721 * 5722 * @return VBox status 5722 * @return VBox status 5723 5723 * @return VERR_VD_IMAGE_READ_ONLY if image is not writable. 5724 5724 * @return VERR_NOT_SUPPORTED if this kind of image can be compacted, but -
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r31920 r32431 2543 2543 2544 2544 /* 2545 * Making the image smaller is not supported at the moment. 2545 * Making the image smaller is not supported at the moment. 2546 2546 * Resizing is also not supported for fixed size images and 2547 2547 * very old images. -
trunk/src/VBox/Devices/Storage/testcase/vbox-img.cpp
r32395 r32431 88 88 { 89 89 va_list args; 90 90 91 91 va_start(args, pszFormat); 92 92 RTPrintf("\n" … … 99 99 { 100 100 va_list args; 101 101 102 102 va_start(args, pszFormat); 103 103 RTPrintf("\n" … … 120 120 RTUuidClear(&parentUuid); 121 121 int rc; 122 122 123 123 /* Parse the command line. */ 124 124 static const RTGETOPTDEF s_aOptions[] = … … 163 163 } 164 164 } 165 165 166 166 /* Check for mandatory parameters. */ 167 167 if (!pszFilename) 168 168 return errorSyntax("Mandatory --filename option missing\n"); 169 169 170 170 /* Check for consistency of optional parameters. */ 171 171 if (fSetImageUuid && RTUuidIsNull(&imageUuid)) 172 172 return errorSyntax("Invalid parameter to --uuid option\n"); 173 173 174 174 /* Autodetect image format. */ 175 175 if (!pszFormat) … … 181 181 return errorRuntime("Format autodetect failed: %Rrc\n", rc); 182 182 } 183 183 184 184 PVBOXHDD pVD = NULL; 185 185 rc = VDCreate(pVDIfs, &pVD); 186 186 if (RT_FAILURE(rc)) 187 187 return errorRuntime("Cannot create the virtual disk container: %Rrc\n", rc); 188 189 188 189 190 190 rc = VDOpen(pVD, pszFormat, pszFilename, VD_OPEN_FLAGS_NORMAL, NULL); 191 191 if (RT_FAILURE(rc)) 192 192 return errorRuntime("Cannot open the virtual disk image \"%s\": %Rrc\n", 193 193 pszFilename, rc); 194 194 195 195 RTUUID oldImageUuid; 196 196 rc = VDGetUuid(pVD, VD_LAST_IMAGE, &oldImageUuid); … … 198 198 return errorRuntime("Cannot get UUID of virtual disk image \"%s\": %Rrc\n", 199 199 pszFilename, rc); 200 200 201 201 RTPrintf("Old image UUID: %RTuuid\n", &oldImageUuid); 202 202 203 203 RTUUID oldParentUuid; 204 204 rc = VDGetParentUuid(pVD, VD_LAST_IMAGE, &oldParentUuid); … … 206 206 return errorRuntime("Cannot get parent UUID of virtual disk image \"%s\": %Rrc\n", 207 207 pszFilename, rc); 208 208 209 209 RTPrintf("Old parent UUID: %RTuuid\n", &oldParentUuid); 210 210 211 211 if (fSetImageUuid) 212 212 { … … 217 217 pszFilename, rc); 218 218 } 219 219 220 220 if (fSetParentUuid) 221 221 { … … 226 226 pszFilename, rc); 227 227 } 228 228 229 229 rc = VDCloseAll(pVD); 230 230 if (RT_FAILURE(rc)) 231 231 return errorRuntime("Closing image failed! rc=%Rrc\n", rc); 232 232 233 233 if (pszFormat) 234 234 { … … 236 236 pszFormat = NULL; 237 237 } 238 239 return 0; 238 239 return 0; 240 240 } 241 241 … … 252 252 unsigned uImageFlags = VD_IMAGE_FLAGS_NONE; 253 253 int rc = VINF_SUCCESS; 254 254 255 255 /* Parse the command line. */ 256 256 static const RTGETOPTDEF s_aOptions[] = … … 292 292 } 293 293 } 294 294 295 295 /* Check for mandatory parameters. */ 296 296 if (!pszSrcFilename) … … 298 298 if (!pszDstFilename) 299 299 return errorSyntax("Mandatory --dstfilename option missing\n"); 300 300 301 301 /* check the variant parameter */ 302 302 if (pszVariant) … … 332 332 } 333 333 } 334 334 335 335 do 336 336 { … … 363 363 if (!pszDstFormat) 364 364 pszDstFormat = "VDI"; 365 365 366 366 rc = VDCreate(pVDIfs, &pDstDisk); 367 367 if (RT_FAILURE(rc)) … … 370 370 break; 371 371 } 372 372 373 373 uint64_t cbSize = VDGetSize(pSrcDisk, VD_LAST_IMAGE); 374 374 RTPrintf("Converting image \"%s\" with size %RU64 bytes (%RU64MB)...\n", pszSrcFilename, cbSize, (cbSize + _1M - 1) / _1M); 375 375 376 376 /* Create the output image */ 377 377 rc = VDCopy(pSrcDisk, VD_LAST_IMAGE, pDstDisk, pszDstFormat, … … 382 382 break; 383 383 } 384 384 385 385 } 386 386 while (0); 387 387 388 388 if (pDstDisk) 389 389 VDCloseAll(pDstDisk); 390 390 if (pSrcDisk) 391 391 VDCloseAll(pSrcDisk); 392 392 393 393 return RT_SUCCESS(rc) ? 0 : 1; 394 394 } … … 417 417 pszFilename = ValueUnion.psz; 418 418 break; 419 419 420 420 default: 421 421 ch = RTGetOptPrintError(ch, &ValueUnion); … … 424 424 } 425 425 } 426 426 427 427 /* Check for mandatory parameters. */ 428 428 if (!pszFilename) 429 429 return errorSyntax("Mandatory --filename option missing\n"); 430 430 431 431 /* just try it */ 432 432 char *pszFormat = NULL; … … 438 438 if (RT_FAILURE(rc)) 439 439 return errorRuntime("Error while creating the virtual disk container: %Rrc\n", rc); 440 440 441 441 /* Open the image */ 442 442 rc = VDOpen(pDisk, pszFormat, pszFilename, VD_OPEN_FLAGS_INFO, NULL); 443 443 if (RT_FAILURE(rc)) 444 444 return errorRuntime("Error while opening the image: %Rrc\n", rc); 445 445 446 446 VDDumpImages(pDisk); 447 447 448 448 VDCloseAll(pDisk); 449 449 450 450 return rc; 451 451 } … … 456 456 PVBOXHDD pDisk = NULL; 457 457 const char *pszFilename = NULL; 458 458 459 459 /* Parse the command line. */ 460 460 static const RTGETOPTDEF s_aOptions[] = … … 473 473 pszFilename = ValueUnion.psz; 474 474 break; 475 475 476 476 default: 477 477 ch = RTGetOptPrintError(ch, &ValueUnion); … … 480 480 } 481 481 } 482 482 483 483 /* Check for mandatory parameters. */ 484 484 if (!pszFilename) 485 485 return errorSyntax("Mandatory --filename option missing\n"); 486 486 487 487 /* just try it */ 488 488 char *pszFormat = NULL; … … 490 490 if (RT_FAILURE(rc)) 491 491 return errorSyntax("Format autodetect failed: %Rrc\n", rc); 492 492 493 493 rc = VDCreate(pVDIfs, &pDisk); 494 494 if (RT_FAILURE(rc)) 495 495 return errorRuntime("Error while creating the virtual disk container: %Rrc\n", rc); 496 496 497 497 /* Open the image */ 498 498 rc = VDOpen(pDisk, pszFormat, pszFilename, VD_OPEN_FLAGS_NORMAL, NULL); 499 499 if (RT_FAILURE(rc)) 500 500 return errorRuntime("Error while opening the image: %Rrc\n", rc); 501 501 502 502 rc = VDCompact(pDisk, 0, NULL); 503 503 if (RT_FAILURE(rc)) 504 504 errorRuntime("Error while compacting image: %Rrc\n", rc); 505 505 506 506 VDCloseAll(pDisk); 507 507 508 508 return rc; 509 509 } … … 516 516 "(C) 2005-" VBOX_C_YEAR " " VBOX_VENDOR "\n" 517 517 "All rights reserved.\n" 518 "\n"); 518 "\n"); 519 519 } 520 520 … … 530 530 int iCmd = 1; 531 531 int iCmdArg; 532 532 533 533 /* global options */ 534 534 for (int i = 1; i < argc || argc <= iCmd; i++) … … 545 545 return 0; 546 546 } 547 547 548 548 if ( !strcmp(argv[i], "-v") 549 549 || !strcmp(argv[i], "-version") … … 569 569 } 570 570 } 571 571 572 572 iCmdArg = iCmd + 1; 573 573 574 574 if (fShowLogo) 575 575 showLogo(); … … 582 582 vdInterfaceErrorCallbacks.pfnError = handleVDError; 583 583 vdInterfaceErrorCallbacks.pfnMessage = handleVDMessage; 584 584 585 585 rc = VDInterfaceAdd(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR, 586 586 &vdInterfaceErrorCallbacks, NULL, &pVDIfs); 587 587 588 588 rc = VDInit(); 589 589 if (RT_FAILURE(rc)) 590 590 return errorSyntax("Initalizing backends failed! rc=%Rrc\n"); 591 591 592 592 /* 593 593 * All registered command handlers … … 614 614 handlerArg.argc = argc - iCmdArg; 615 615 handlerArg.argv = &argv[iCmdArg]; 616 616 617 617 rc = s_commandHandlers[commandIndex].handler(&handlerArg); 618 618 break; … … 620 620 } 621 621 if (!s_commandHandlers[commandIndex].command) 622 return errorSyntax("Invalid command '%s'", argv[iCmd]); 622 return errorSyntax("Invalid command '%s'", argv[iCmd]); 623 623 624 624 rc = VDShutdown(); 625 625 if (RT_FAILURE(rc)) 626 626 return errorSyntax("Unloading backends failed! rc=%Rrc\n", rc); 627 627 628 628 return rc; 629 629 } -
trunk/src/VBox/Devices/USB/VUSBUrb.cpp
r32010 r32431 2011 2011 * state and in the async list until its reaped. When it's finally reaped 2012 2012 * it will be unlinked and freed without doing any completion. 2013 * 2013 * 2014 2014 * There are different modes of canceling an URB. When devices are being 2015 2015 * disconnected etc., they will be completed with an error (CRC). However, -
trunk/src/VBox/Devices/USB/win/USBProxyDevice-win.cpp
r32192 r32431 762 762 if (DeviceIoControl(pPriv->hDev, SUPUSB_IOCTL_USB_ABORT_ENDPOINT, &in, sizeof(in), NULL, 0, &cbReturned, NULL)) 763 763 return; 764 764 765 765 rc = GetLastError(); 766 766 if ( rc == ERROR_INVALID_HANDLE_STATE -
trunk/src/VBox/Frontends/VBoxHeadless/NullFramebuffer.h
r31798 r32431 22 22 NullFB() 23 23 : 24 mScreen(NULL), mBuffer(NULL), 24 mScreen(NULL), mBuffer(NULL), 25 25 mUsesGuestVRAM(false), 26 26 mWidth(0), mHeight(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r32296 r32431 446 446 if (vboxProblem().isAnyWarningShown()) 447 447 { 448 448 vboxProblem().closeAllWarnings(); 449 449 QTimer::singleShot(0, this, SLOT(sltCloseVirtualSession())); 450 450 return; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMPreviewWindow.cpp
r32409 r32431 163 163 /* Paint the name in the center of the monitor */ 164 164 painter.fillRect(m_vRect, Qt::black); 165 165 QFont font = painter.font(); 166 166 font.setBold(true); 167 167 int fFlags = Qt::AlignCenter | Qt::TextWordWrap; -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem.cpp
r30489 r32431 228 228 RTTESTI_CHECK_RC(SUPSemEventMultiCreate(pSession, &hEvent), VINF_SUCCESS); 229 229 RTTESTI_CHECK_RC(RTThreadCreate(&hThread, tstSupSemInterruptibleMRE, (void *)hEvent, 0, RTTHREADTYPE_TIMER, RTTHREADFLAGS_WAITABLE, "IntSRE"), VINF_SUCCESS); 230 230 231 231 RTTHREAD hThread2 = NIL_RTTHREAD; 232 232 RTTESTI_CHECK_RC(RTThreadCreate(&hThread2, tstSupSemInterruptibleMRE, (void *)hEvent, 0, RTTHREADTYPE_TIMER, RTTHREADFLAGS_WAITABLE, "IntSRE"), VINF_SUCCESS); -
trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxdev.cpp
r31896 r32431 1951 1951 || devdescr->iProduct || devdescr->iManufacturer 1952 1952 #endif 1953 ) 1953 ) 1954 1954 { 1955 1955 status = VBoxUSBGetLangID(pDevice, &langId); … … 1971 1971 } 1972 1972 memset(pstrdescr, 0, uLength); 1973 1973 1974 1974 pstrdescr->bLength = uLength; 1975 1975 pstrdescr->bDescriptorType = USB_STRING_DESCRIPTOR_TYPE; 1976 1976 1977 1977 status = VBoxUSBGetDescriptor(pDevice, pstrdescr, uLength, USB_STRING_DESCRIPTOR_TYPE, devdescr->iSerialNumber, langId); 1978 1978 if (!NT_SUCCESS(status)) -
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r32388 r32431 130 130 exit 1 131 131 fi 132 132 133 133 binfilename=`basename $1` 134 134 binfilepath=`which $binfilename 2> /dev/null` -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r31957 r32431 777 777 778 778 /* features are mapped to "VRDP/Feature/NAME" extra data. */ 779 com::Utf8Str extraData("VRDP/Feature/"); 779 com::Utf8Str extraData("VRDP/Feature/"); 780 780 extraData += pFeature->achInfo; 781 781 -
trunk/src/VBox/Main/ProgressProxyImpl.cpp
r30976 r32431 313 313 HRESULT hrc; 314 314 LogFlowThisFunc(("\n")); 315 315 316 316 NOREF(fEarly); 317 317 -
trunk/src/VBox/Main/linux/HostHardwareLinux.cpp
r32324 r32431 1026 1026 * 1027 1027 * @returns zero on success or (positive) posix error value. 1028 * @param pcszPath the path to dump. 1028 * @param pcszPath the path to dump. 1029 1029 * @param pvecpchDevs an empty vector of char pointers - must be cleaned up 1030 1030 * by the caller even on failure. -
trunk/src/VBox/Main/linux/USBGetDevices.cpp
r32324 r32431 878 878 if (cchDevPath < 0) 879 879 return VINF_SUCCESS; 880 880 881 881 USBDeviceInfo info; 882 882 if (USBDevInfoInit(&info, szDevPath, pcszNode)) … … 985 985 * 986 986 * @returns zero on success or (positive) posix error value. 987 * @param pcszPath the path to dump. 987 * @param pcszPath the path to dump. 988 988 * @param pvecpchDevs an empty vector of char pointers - must be cleaned up 989 989 * by the caller even on failure. -
trunk/src/VBox/Main/linux/USBProxyServiceLinux.cpp
r32324 r32431 206 206 RTFileClose(mFile); 207 207 } 208 208 209 209 } 210 210 RTStrFree(pszDevices); -
trunk/src/VBox/Runtime/common/alloc/memtracker.cpp
r32125 r32431 38 38 #include "internal/magics.h" 39 39 40 -
trunk/src/VBox/Runtime/r3/win/fs-win.cpp
r30371 r32431 339 339 * 340 340 * @returns @c true if equal, @c false if not. 341 * @param pwsz1 The first string. 341 * @param pwsz1 The first string. 342 342 * @param cb1 The length of the first string, in bytes. 343 * @param psz2 The second string. 344 * @param cch2 The length of the second string. 343 * @param psz2 The second string. 344 * @param cch2 The length of the second string. 345 345 */ 346 346 static bool rtFsWinAreEqual(WCHAR const *pwsz1, size_t cch1, const char *psz2, size_t cch2) -
trunk/src/VBox/Runtime/r3/win/poll-win.cpp
r32131 r32431 585 585 } 586 586 587 -
trunk/src/VBox/Runtime/testcase/tstTimer.cpp
r32332 r32431 61 61 if (u64Delta > gu64Max) 62 62 gu64Max = u64Delta; 63 int i = (int)( RT_ELEMENTS(cFrequency) 63 int i = (int)( RT_ELEMENTS(cFrequency) 64 64 - (u64Delta * (RT_ELEMENTS(cFrequency) / 2) / gu64Norm)); 65 65 if (i >= 0 && i < (int)RT_ELEMENTS(cFrequency)) -
trunk/src/VBox/VMM/FTM.cpp
r32319 r32431 135 135 STAM_REL_REG(pVM, &pVM->ftm.s.StatDeltaMem, STAMTYPE_COUNTER, "/FT/Sync/DeltaMem", STAMUNIT_OCCURENCES, "Number of delta mem syncs."); 136 136 STAM_REL_REG(pVM, &pVM->ftm.s.StatCheckpointStorage, STAMTYPE_COUNTER, "/FT/Checkpoint/Storage", STAMUNIT_OCCURENCES, "Number of storage checkpoints."); 137 STAM_REL_REG(pVM, &pVM->ftm.s.StatCheckpointNetwork, STAMTYPE_COUNTER, "/FT/Checkpoint/Network", STAMUNIT_OCCURENCES, "Number of network checkpoints."); 137 STAM_REL_REG(pVM, &pVM->ftm.s.StatCheckpointNetwork, STAMTYPE_COUNTER, "/FT/Checkpoint/Network", STAMUNIT_OCCURENCES, "Number of network checkpoints."); 138 138 #ifdef VBOX_WITH_STATISTICS 139 139 STAM_REG(pVM, &pVM->ftm.s.StatCheckpoint, STAMTYPE_PROFILE, "/FT/Checkpoint", STAMUNIT_TICKS_PER_CALL, "Profiling of FTMR3SetCheckpoint."); … … 701 701 break; 702 702 703 case PGMPAGETYPE_MMIO2: 703 case PGMPAGETYPE_MMIO2: 704 704 pVM->ftm.s.StatSentMemMMIO2.c += Hdr.cb + sizeof(Hdr); 705 705 break; … … 777 777 rc = RTSemEventWait(pVM->ftm.s.hShutdownEvent, 1000 /* 1 second */); 778 778 if (rc != VERR_TIMEOUT) 779 return VINF_SUCCESS; /* told to quit */ 779 return VINF_SUCCESS; /* told to quit */ 780 780 } 781 781 … … 784 784 */ 785 785 786 /* First sync all memory and write protect everything so 786 /* First sync all memory and write protect everything so 787 787 * we can send changed pages later on. 788 788 */ … … 1233 1233 bool fSuspended = false; 1234 1234 1235 /** We don't call VMR3Suspend here to avoid the overhead of state changes and notifications. This 1235 /** We don't call VMR3Suspend here to avoid the overhead of state changes and notifications. This 1236 1236 * is only a short suspend. 1237 1237 */ … … 1271 1271 AssertRC(rc); 1272 1272 1273 /** We don't call VMR3Resume here to avoid the overhead of state changes and notifications. This 1273 /** We don't call VMR3Resume here to avoid the overhead of state changes and notifications. This 1274 1274 * is only a short suspend. 1275 1275 */ -
trunk/src/VBox/VMM/FTMInternal.h
r32319 r32431 89 89 } standby; 90 90 91 /* 91 /* 92 92 struct 93 93 { -
trunk/src/VBox/VMM/PATM/CSAM.cpp
r30572 r32431 686 686 687 687 pHCPtr = PATMR3GCPtrToHCPtr(pVM, pGCPtr); 688 if (pHCPtr) 688 if (pHCPtr) 689 689 return pHCPtr; 690 690 … … 2289 2289 PCSAMPAGE pPage = NULL; 2290 2290 2291 if ( EMIsRawRing0Enabled(pVM) == false 2291 if ( EMIsRawRing0Enabled(pVM) == false 2292 2292 || PATMIsPatchGCAddr(pVM, pInstrGC) == true) 2293 2293 { -
trunk/src/VBox/VMM/PGMGstDefs.h
r32036 r32431 230 230 #endif 231 231 232 -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r32410 r32431 1272 1272 # ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT 1273 1273 /* Reset the modification counter (OpenSolaris trashes tlb entries very often) */ 1274 if ( !pShwPage->fDirty 1274 if ( !pShwPage->fDirty 1275 1275 && pShwPage->cModifications) 1276 1276 pShwPage->cModifications = 1; -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r32401 r32431 1247 1247 if ( pPage->cModifications >= cMaxModifications 1248 1248 && !fForcedFlush 1249 # if 1 1249 # if 1 1250 1250 && (pPage->enmKind == PGMPOOLKIND_PAE_PT_FOR_PAE_PT) 1251 1251 # else /* test code */ -
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r31361 r32431 64 64 * and then by native thread id (page fusion case). 65 65 */ 66 /* RTMpCpuId had better be cheap. */ 67 RTCPUID idHostCpu = RTMpCpuId(); 66 /* RTMpCpuId had better be cheap. */ 67 RTCPUID idHostCpu = RTMpCpuId(); 68 68 69 69 /** @todo optimize for large number of VCPUs when that becomes more common. */ … … 119 119 */ 120 120 121 /* RTMpCpuId had better be cheap. */ 122 RTCPUID idHostCpu = RTMpCpuId(); 121 /* RTMpCpuId had better be cheap. */ 122 RTCPUID idHostCpu = RTMpCpuId(); 123 123 124 124 /** @todo optimize for large number of VCPUs when that becomes more common. */ -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r31383 r32431 3765 3765 RTMemFree(pRec->aRegions[i].paHCPhysPageID); 3766 3766 3767 Assert(pRec->Core.Key == GCBaseAddr || pRec->enmGuestOS == VBOXOSFAMILY_Windows64); 3767 Assert(pRec->Core.Key == GCBaseAddr || pRec->enmGuestOS == VBOXOSFAMILY_Windows64); 3768 3768 Assert(pRec->cRegions == pRecVM->cRegions); 3769 3769 #ifdef VBOX_STRICT -
trunk/src/VBox/VMM/VMMR0/PGMR0.cpp
r32087 r32431 408 408 } 409 409 410 -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r32418 r32431 79 79 #if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64) 80 80 /* Increase the size of the image to work around the refusal of Win64 to 81 * load images in the 0x80000 range. 81 * load images in the 0x80000 range. 82 82 */ 83 83 static uint64_t u64BloatImage[8192] = {0};
Note:
See TracChangeset
for help on using the changeset viewer.