cloud-hypervisor/vmm/src
Rob Bradford 7a637fe1f4 vmm: memory_manager: Use div_ceil()
--> vmm/src/memory_manager.rs:1972:13
     |
1972 | ...   ((self.start_of_device_area.0 + SGX_PAGE_SIZE - 1) / SGX_PAGE_SIZE) * ...
     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `self.start_of_device_area.0.div_ceil(SGX_PAGE_SIZE)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil
     = note: `#[warn(clippy::manual_div_ceil)]` on by default

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
2024-10-21 15:28:17 +00:00
..
api vmm: remove pub use vm_config in config 2024-09-30 08:18:02 +00:00
igvm misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
acpi.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
console_devices.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
coredump.rs misc: Replace div_round_up operation with div_ceil 2024-10-18 17:46:39 +00:00
cpu.rs misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
device_manager.rs vmm: drop device_tree mutex before acquiring pci_bus mutex 2024-10-03 12:04:00 +00:00
device_tree.rs misc: Elide needless lifetimes 2024-10-18 17:46:39 +00:00
gdb.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
interrupt.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
landlock.rs misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
lib.rs misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
memory_manager.rs vmm: memory_manager: Use div_ceil() 2024-10-21 15:28:17 +00:00
migration.rs vmm: remove pub use vm_config in config 2024-09-30 08:18:02 +00:00
pci_segment.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
seccomp_filters.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
serial_manager.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
sigwinch_listener.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00
vm.rs misc: Eliminate use of assert!((...).is_ok()) 2024-10-03 12:03:49 +00:00
vm_config.rs misc: Further improve imports styling 2024-09-29 16:13:48 +00:00