Skip to content

Commit 62192fd

Browse files
committed
Don't update the cache now
1 parent 8d57ea5 commit 62192fd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

openhcl/virt_mshv_vtl/src/processor/mshv/tlb_lock.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,15 @@ impl UhProcessor<'_, HypervisorBacked> {
5757

5858
/// Check the status of the TLB lock of the target VTL on the current VP.
5959
#[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 {
6161
debug_assert_eq!(requesting_vtl, Vtl::Vtl2);
6262
let locally_locked = self.vtls_tlb_locked.get(requesting_vtl, target_vtl);
6363
// The hypervisor may lock the TLB without us knowing, but the inverse should never happen.
6464
if locally_locked {
6565
debug_assert!(self.is_tlb_locked_in_hypervisor(target_vtl));
6666
true
6767
} 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)
7269
}
7370
}
7471

0 commit comments

Comments
 (0)