Skip to content

Commit c9a1a4c

Browse files
authored
fix: wrong flag passed to get_memory_access_violation on VmExit::MmioRead (#1295)
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 8950f2e commit c9a1a4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hyperlight_host/src/hypervisor/hyperlight_vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ impl HyperlightVm {
897897
let all_regions = self.get_mapped_regions();
898898
match get_memory_access_violation(
899899
addr as usize,
900-
MemoryRegionFlags::WRITE,
900+
MemoryRegionFlags::READ,
901901
all_regions,
902902
) {
903903
Some(MemoryAccess::AccessViolation(region_flags)) => {

0 commit comments

Comments
 (0)