File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
openhcl/virt_mshv_vtl/src/processor/mshv Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,15 @@ impl UhProcessor<'_, HypervisorBacked> {
57
57
58
58
/// Check the status of the TLB lock of the target VTL on the current VP.
59
59
#[ cfg( debug_assertions) ]
60
- pub ( crate ) fn is_tlb_locked ( & mut self , requesting_vtl : Vtl , target_vtl : GuestVtl ) -> bool {
60
+ pub ( crate ) fn is_tlb_locked ( & self , requesting_vtl : Vtl , target_vtl : GuestVtl ) -> bool {
61
61
debug_assert_eq ! ( requesting_vtl, Vtl :: Vtl2 ) ;
62
62
let locally_locked = self . vtls_tlb_locked . get ( requesting_vtl, target_vtl) ;
63
63
// The hypervisor may lock the TLB without us knowing, but the inverse should never happen.
64
64
if locally_locked {
65
65
debug_assert ! ( self . is_tlb_locked_in_hypervisor( target_vtl) ) ;
66
66
true
67
67
} else {
68
- let hyp_locked = self . is_tlb_locked_in_hypervisor ( target_vtl) ;
69
- self . vtls_tlb_locked
70
- . set ( requesting_vtl, target_vtl, hyp_locked) ;
71
- hyp_locked
68
+ self . is_tlb_locked_in_hypervisor ( target_vtl)
72
69
}
73
70
}
74
71
You can’t perform that action at this time.
0 commit comments