Skip to content

Commit

Permalink
Merge pull request #359 from ved-rivos/0622_1
Browse files Browse the repository at this point in the history
set is_mrif to 0 on IOATC hit
  • Loading branch information
ved-rivos authored Jun 22, 2024
2 parents c2fe7d4 + fd09a3e commit 2dc52c5
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 2dc52c5

Please sign in to comment.