mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: remove some overrides
Closes #4986 [0]. [0]: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/4986 Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
a8d1411307
commit
82e8002fa0
@@ -1235,12 +1235,10 @@ impl Vmm {
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
fn send_migration(
|
||||
vm: &mut Vm,
|
||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))] hypervisor: Arc<
|
||||
dyn hypervisor::Hypervisor,
|
||||
>,
|
||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||
hypervisor: &dyn hypervisor::Hypervisor,
|
||||
send_data_migration: &VmSendMigrationData,
|
||||
) -> result::Result<(), MigratableError> {
|
||||
// Set up the socket connection
|
||||
@@ -1265,12 +1263,10 @@ impl Vmm {
|
||||
}
|
||||
|
||||
let amx = vm_config.lock().unwrap().cpus.features.amx;
|
||||
let phys_bits = vm::physical_bits(
|
||||
hypervisor.as_ref(),
|
||||
vm_config.lock().unwrap().cpus.max_phys_bits,
|
||||
);
|
||||
let phys_bits =
|
||||
vm::physical_bits(hypervisor, vm_config.lock().unwrap().cpus.max_phys_bits);
|
||||
arch::generate_common_cpuid(
|
||||
hypervisor.as_ref(),
|
||||
hypervisor,
|
||||
&arch::CpuidConfig {
|
||||
phys_bits,
|
||||
kvm_hyperv: vm_config.lock().unwrap().cpus.kvm_hyperv,
|
||||
@@ -2323,7 +2319,7 @@ impl RequestHandler for Vmm {
|
||||
Self::send_migration(
|
||||
vm,
|
||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||
self.hypervisor.clone(),
|
||||
self.hypervisor.as_ref(),
|
||||
&send_data_migration,
|
||||
)
|
||||
.map_err(|migration_err| {
|
||||
|
||||
Reference in New Issue
Block a user