File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ use crate::vmm_config::instance_info::InstanceInfo;
5757use crate :: vmm_config:: machine_config:: MachineConfigError ;
5858use crate :: vmm_config:: snapshot:: { LoadSnapshotParams , MemBackendType } ;
5959use crate :: vstate:: kvm:: { Kvm , KvmError } ;
60- use crate :: vstate:: memory:: { MaybeBounce , create_memfd , MemoryError } ;
60+ use crate :: vstate:: memory:: { MaybeBounce , MemoryError , create_memfd } ;
6161#[ cfg( target_arch = "aarch64" ) ]
6262use crate :: vstate:: resources:: ResourceAllocator ;
6363use crate :: vstate:: vcpu:: VcpuError ;
Original file line number Diff line number Diff line change @@ -776,11 +776,7 @@ impl Vmm {
776776 match result {
777777 Ok ( fault_reply) => {
778778 let vcpu = fault_reply. vcpu . expect ( "vCPU must be set" ) ;
779-
780- self . vcpus_handles
781- . get ( vcpu as usize )
782- . expect ( "Invalid vcpu index" )
783- . send_userfault_resolved ( ) ;
779+ self . vcpus_handles [ vcpu as usize ] . send_userfault_resolved ( ) ;
784780
785781 total_consumed = parser. byte_offset ( ) ;
786782 }
You can’t perform that action at this time.
0 commit comments