Skip to content

Commit d449b8f

Browse files
author
Jenna Goddard
committed
it
1 parent 896cddf commit d449b8f

File tree

1 file changed

+4
-3
lines changed
  • openhcl/virt_mshv_vtl/src

1 file changed

+4
-3
lines changed

openhcl/virt_mshv_vtl/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,15 +1945,16 @@ impl UhPartition {
19451945
}
19461946

19471947
/// Trigger the LINT1 interrupt vector on the LAPIC of the BSP.
1948-
pub fn assert_debug_interrupt(&self, vtl: u8) {
1948+
pub fn assert_debug_interrupt(&self, _vtl: u8) {
19491949
#[cfg(guest_arch = "x86_64")]
1950+
const LINT_INDEX_1: u8 = 1;
19501951
match self.inner.isolation {
19511952
IsolationType::Snp => {
1952-
tracing::error!(?vtl, "Debug interrupts cannot be injected into SNP VMs",);
1953+
tracing::error!(?_vtl, "Debug interrupts cannot be injected into SNP VMs",);
19531954
}
19541955
_ => {
19551956
let bsp_index = VpIndex::new(0);
1956-
self.pulse_lint(bsp_index, Vtl::try_from(vtl).unwrap(), 1)
1957+
self.pulse_lint(bsp_index, Vtl::try_from(_vtl).unwrap(), LINT_INDEX_1)
19571958
}
19581959
}
19591960
}

0 commit comments

Comments
 (0)