@@ -171,11 +171,10 @@ impl Vm for MshvVm {
171171 }
172172
173173 fn run_vcpu ( & mut self ) -> Result < HyperlightExit > {
174- const HALT_MESSAGE : hv_message_type = hv_message_type_HVMSG_X64_HALT;
175- const IO_PORT_INTERCEPT_MESSAGE : hv_message_type =
176- hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT;
177- const UNMAPPED_GPA_MESSAGE : hv_message_type = hv_message_type_HVMSG_UNMAPPED_GPA;
178- const INVALID_GPA_ACCESS_MESSAGE : hv_message_type = hv_message_type_HVMSG_GPA_INTERCEPT;
174+ const HALT : hv_message_type = hv_message_type_HVMSG_X64_HALT;
175+ const IO_PORT : hv_message_type = hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT;
176+ const UNMAPPED_GPA : hv_message_type = hv_message_type_HVMSG_UNMAPPED_GPA;
177+ const INVALID_GPA : hv_message_type = hv_message_type_HVMSG_GPA_INTERCEPT;
179178 #[ cfg( gdb) ]
180179 const EXCEPTION_INTERCEPT : hv_message_type = hv_message_type_HVMSG_X64_EXCEPTION_INTERCEPT;
181180
@@ -189,11 +188,11 @@ impl Vm for MshvVm {
189188
190189 let result = match run_result {
191190 Ok ( m) => match m. header . message_type {
192- HALT_MESSAGE => {
191+ HALT => {
193192 crate :: debug!( "mshv - Halt Details : {:#?}" , & self ) ;
194193 HyperlightExit :: Halt ( )
195194 }
196- IO_PORT_INTERCEPT_MESSAGE => {
195+ IO_PORT => {
197196 let io_message = m. to_ioport_info ( ) ?;
198197 let port_number = io_message. port_number ;
199198 let rax = io_message. rax ;
@@ -209,7 +208,7 @@ impl Vm for MshvVm {
209208 crate :: debug!( "mshv IO Details : \n Port : {}\n {:#?}" , port_number, & self ) ;
210209 HyperlightExit :: IoOut ( port_number, rax. to_le_bytes ( ) . to_vec ( ) )
211210 }
212- UNMAPPED_GPA_MESSAGE => {
211+ UNMAPPED_GPA => {
213212 let mimo_message = m. to_memory_info ( ) ?;
214213 let addr = mimo_message. guest_physical_address ;
215214 crate :: debug!(
@@ -223,7 +222,7 @@ impl Vm for MshvVm {
223222 _ => HyperlightExit :: Unknown ( "Unknown MMIO access" . to_string ( ) ) ,
224223 }
225224 }
226- INVALID_GPA_ACCESS_MESSAGE => {
225+ INVALID_GPA => {
227226 let mimo_message = m. to_memory_info ( ) ?;
228227 let gpa = mimo_message. guest_physical_address ;
229228 let access_info = MemoryRegionFlags :: try_from ( mimo_message) ?;
0 commit comments