Skip to content

Commit 0627d92

Browse files
authored
Fix TDX TLB flush offload enabled inversion (#1699) (#1701)
This code got refactored a dozen times, and at some point this check ended up inverted. Offloading can be enabled when there is no pending TLB flush. Clean cherry-pick of #1699.
1 parent f8bc133 commit 0627d92

File tree

1 file changed

+1
-1
lines changed
  • openhcl/virt_mshv_vtl/src/processor/tdx

1 file changed

+1
-1
lines changed

openhcl/virt_mshv_vtl/src/processor/tdx/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ impl UhProcessor<'_, TdxBacked> {
15521552
.private_regs
15531553
.vp_entry_flags
15541554
.invd_translations()
1555-
!= 0;
1555+
== 0;
15561556
let x2apic_enabled = self.backing.cvm.lapics[next_vtl].lapic.x2apic_enabled();
15571557

15581558
let offload_flags = hcl_intr_offload_flags::new()

0 commit comments

Comments
 (0)