mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
@@ -246,7 +246,7 @@ impl VirtioMemConfig {
|
||||
size,
|
||||
self.region_size
|
||||
)));
|
||||
} else if size % (self.block_size as u64) != 0 {
|
||||
} else if size % self.block_size != 0 {
|
||||
return Err(Error::ResizeError(anyhow!(
|
||||
"new size 0x{:x} is not aligned on block_size 0x{:x}",
|
||||
size,
|
||||
|
||||
Reference in New Issue
Block a user