mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-12 18:17:05 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user