Changeset 45341 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2013 3:52:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0Mixed.mac
r43387 r45341 131 131 132 132 ; Restore CR2 133 mov ebx, [xSI + CPUMCTX.cr2] 133 mov xBX, [xSI + CPUMCTX.cr2] 134 mov xDX, cr2 135 cmp xBX, xDX 136 je .skipcr2write32 134 137 mov cr2, xBX 135 138 139 .skipcr2write32: 136 140 mov eax, VMX_VMCS_HOST_RSP 137 141 vmwrite xAX, xSP … … 185 189 mov [ss:xDI + CPUMCTX.esi], esi 186 190 mov [ss:xDI + CPUMCTX.ebp], ebp 191 %ifndef VBOX_WITH_OLD_VTX_CODE 192 mov xAX, cr2 193 mov [ss:xDI + CPUMCTX.cr2], xAX 194 %endif 195 187 196 %ifdef RT_ARCH_AMD64 188 197 pop xAX ; the guest edi we pushed above … … 233 242 .no_cached_reads: 234 243 244 %ifdef VBOX_WITH_OLD_VTX_CODE 235 245 ; Save CR2 for EPT 236 246 mov xAX, cr2 237 247 mov [ss:xDX + VMCSCACHE.cr2], xAX 248 %endif 238 249 %endif 239 250 … … 440 451 ; Restore CR2 441 452 mov rbx, qword [xSI + CPUMCTX.cr2] 453 mov rdx, cr2 454 cmp rbx, rdx 455 je .skipcr2write 442 456 mov cr2, rbx 443 457 458 .skipcr2write: 444 459 mov eax, VMX_VMCS_HOST_RSP 445 460 vmwrite xAX, xSP … … 509 524 mov qword [xDI + CPUMCTX.r14], r14 510 525 mov qword [xDI + CPUMCTX.r15], r15 526 %ifndef VBOX_WITH_OLD_VTX_CODE 527 mov rax, cr2 528 mov qword [xDI + CPUMCTX.cr2], rax 529 %endif 511 530 512 531 pop xAX ; the guest edi we pushed above … … 563 582 .no_cached_reads: 564 583 584 %ifdef VBOX_WITH_OLD_VTX_CODE 565 585 ; Save CR2 for EPT 566 586 mov xAX, cr2 567 587 mov [xDX + VMCSCACHE.cr2], xAX 588 %endif 568 589 %endif 569 590
Note:
See TracChangeset
for help on using the changeset viewer.