File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
openhcl/virt_mshv_vtl/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments