Skip to content

Commit

Permalink
Switch to vmi_slat_control (tklengyel#1797)
Browse files Browse the repository at this point in the history
* Switch to vmi_slat_control

* Update LibVMI
  • Loading branch information
tklengyel authored Jun 25, 2024
1 parent 33efb37 commit f50489b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/libdrakvuf/vmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ bool init_vmi(drakvuf_t drakvuf, bool fast_singlestep)
if (!altp2m)
return 0;

altp2m = vmi_slat_set_domain_state(drakvuf->vmi, 1) == VMI_SUCCESS;
altp2m = vmi_slat_control(drakvuf->vmi, 1) == VMI_SUCCESS;
PRINT_DEBUG("Altp2m enabled: %i\n", altp2m);
if (!altp2m)
return 0;
Expand Down Expand Up @@ -2129,7 +2129,7 @@ void close_vmi(drakvuf_t drakvuf)
fprintf(stderr, "Altp2m view R %u destruction failed\n", drakvuf->altp2m_idr);
if (drakvuf->altp2m_idrx && VMI_FAILURE == vmi_slat_destroy(drakvuf->vmi, drakvuf->altp2m_idrx))
fprintf(stderr, "Altp2m view RX %u destruction failed\n", drakvuf->altp2m_idrx);
if (VMI_FAILURE == vmi_slat_set_domain_state(drakvuf->vmi, false))
if (VMI_FAILURE == vmi_slat_control(drakvuf->vmi, false))
fprintf(stderr, "Failed to disable alternate SLAT\n");

// clear the generic mem_event to speed up shutdown
Expand Down

0 comments on commit f50489b

Please sign in to comment.