• M
    Add VIR_DIV_UP to divide memory or storage request sizes with round up · d9ad8ac3
    Matthias Bolte 提交于
    Use it in all places where a memory or storage request size is converted
    to a larger granularity. This avoids requesting too small memory or storage
    sizes that could result from the truncation done by a simple division.
    
    This extends the round up fix in 6002e040
    to the whole codebase.
    
    Instead of reporting errors for odd values in the VMX code round them up.
    
    Update the QEMU Argv tests accordingly as the original memory size 219200
    isn't a even multiple of 1024 and is rounded up to 215 megabyte now. Change
    it to 219100 and 219136. Use two different values intentionally to make
    sure that rounding up works.
    
    Update virsh.pod accordingly, as rounding down and rejecting are replaced
    by rounding up.
    d9ad8ac3
internal.h 7.1 KB