Skip to content

Commit

Permalink
set is_mrif to 0 on IOATC hit
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Jun 22, 2024
1 parent c2fe7d4 commit fd09a3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iommu_ref_model/libiommu/src/iommu_translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ iommu_translate_iova(
goto stop_and_report_fault;

// Hit in IOATC - complete translation.
if ( ioatc_status == IOATC_HIT ) goto step_20;
if ( ioatc_status == IOATC_HIT ) {
// MRIF translations are not cached in the ATC
is_mrif = 0;
goto step_20;
}

// Count misses in TLB
count_events(PV, PID, PSCV, PSCID, DID, GV, GSCID, IOATC_TLB_MISS);
Expand Down

0 comments on commit fd09a3e

Please sign in to comment.