cloud-hypervisor/hypervisor/src
Rob Bradford 184baff355 hypervisor: kvm: aarch64: Use struct initialisation
error: field assignment outside of initializer for an instance created with Default::default()
Error:     --> hypervisor/src/kvm/mod.rs:1239:9
     |
1239 |         state.mp_state = self.get_mp_state()?;
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
note: consider initializing the variable with `kvm::aarch64::VcpuKvmState { mp_state: self.get_mp_state()?, ..Default::default() }` and removing relevant reassignments
    --> hypervisor/src/kvm/mod.rs:1237:9
     |
1237 |         let mut state = CpuState::default();
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-01-04 13:46:37 +01:00
..
arch misc: Remove unnecessary literal casts 2021-01-04 13:46:37 +01:00
kvm hypervisor: kvm: aarch64: Use struct initialisation 2021-01-04 13:46:37 +01:00
mshv misc: Remove unnecessary literal casts 2021-01-04 13:46:37 +01:00
cpu.rs hypervisor, vmm: Implement the mshv module and add mshv support in vmm 2020-12-09 14:55:20 +01:00
device.rs hypervisor: Implement get_device_attr method for AArch64 2020-09-23 12:37:25 +01:00
hypervisor.rs hypervisor, vmm: Implement the mshv module and add mshv support in vmm 2020-12-09 14:55:20 +01:00
lib.rs hypervisor: Move msr and msr_data macro to arch/x86 2020-12-11 00:59:46 +01:00
vm.rs hypervisor: mshv: Emulate IrqFd and IOEventFd for mshv module 2020-12-09 14:55:20 +01:00