Skip to content

Commit 1106b02

Browse files
authored
Fix TDX TLB flush offload enabled inversion (#1699)
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.
1 parent 9f89c9e commit 1106b02

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
@@ -1550,7 +1550,7 @@ impl UhProcessor<'_, TdxBacked> {
15501550
.private_regs
15511551
.vp_entry_flags
15521552
.invd_translations()
1553-
!= 0;
1553+
== 0;
15541554
let x2apic_enabled = self.backing.cvm.lapics[next_vtl].lapic.x2apic_enabled();
15551555

15561556
let offload_flags = hcl_intr_offload_flags::new()

0 commit comments

Comments
 (0)