VMX: PML address saved should be always 4K aligned

Fixes #217
This commit is contained in:
Stanislav Shwartsman 2024-01-13 09:42:52 +02:00
parent dbc1f5d93a
commit 9fc53de186

View File

@ -783,7 +783,7 @@ void BX_CPU_C::vmx_page_modification_logging(Bit64u guest_paddr, unsigned dirty_
if (dirty_update) {
Bit64u pAddr = vm->pml_address + 8 * vm->pml_index;
write_physical_qword(pAddr, guest_paddr, MEMTYPE(resolve_memtype(pAddr)), BX_VMX_PML_WRITE);
write_physical_qword(pAddr, LPFOf(guest_paddr), MEMTYPE(resolve_memtype(pAddr)), BX_VMX_PML_WRITE);
vm->pml_index--;
}
}