dragonball: Replace manual div_ceil

Use the more clear built-in method

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-12-12 11:53:39 +00:00
parent 048000654c
commit e73a7c3717

View File

@@ -1479,7 +1479,7 @@ impl<C: PciSystemContext> VfioPciDeviceState<C> {
let table_size: u64 = u64::from(msix_cap.table_size()) * (MSIX_TABLE_ENTRY_SIZE as u64);
let pba_bir: u32 = msix_cap.pba_bir();
let pba_offset: u64 = u64::from(msix_cap.pba_offset());
let pba_size: u64 = (u64::from(msix_cap.table_size()) + 7) / 8;
let pba_size: u64 = u64::from(msix_cap.table_size()).div_ceil(8);
self.interrupt.msix = Some(VfioMsix {
state: msix_config,