@@ -24,13 +24,10 @@ use mshv_bindings::DebugRegisters;
2424use mshv_bindings:: hv_message_type_HVMSG_X64_EXCEPTION_INTERCEPT;
2525use mshv_bindings:: {
2626 hv_message_type, hv_message_type_HVMSG_GPA_INTERCEPT, hv_message_type_HVMSG_UNMAPPED_GPA,
27- hv_message_type_HVMSG_X64_HALT, hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT, hv_register_assoc,
28- hv_register_name_HV_X64_REGISTER_RIP, hv_register_value, mshv_user_mem_region,
29- } ;
30- #[ cfg( mshv3) ]
31- use mshv_bindings:: {
27+ hv_message_type_HVMSG_X64_HALT, hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT,
3228 hv_partition_property_code_HV_PARTITION_PROPERTY_SYNTHETIC_PROC_FEATURES,
33- hv_partition_synthetic_processor_features,
29+ hv_partition_synthetic_processor_features, hv_register_assoc,
30+ hv_register_name_HV_X64_REGISTER_RIP, hv_register_value, mshv_user_mem_region,
3431} ;
3532use mshv_ioctls:: { Mshv , VcpuFd , VmFd } ;
3633use tracing:: { Span , instrument} ;
@@ -71,7 +68,6 @@ impl MshvVm {
7168 . as_ref ( )
7269 . map_err ( |e| new_error ! ( "Failed to create MSHV instance: {}" , e) ) ?;
7370 let pr = Default :: default ( ) ;
74- #[ cfg( mshv3) ]
7571 let vm_fd = {
7672 // It's important to avoid create_vm() and explicitly use
7773 // create_vm_with_args() with an empty arguments structure
0 commit comments