• M
    qcow2: Add DEFAULT_L2_CACHE_CLUSTERS · bc85ef26
    Max Reitz 提交于
    If a relatively large cluster size is chosen, the default of 1 MB L2
    cache is not really appropriate. In this case, unless overridden by the
    user, the default cache size should not be determined by its size in
    bytes but by the number of L2 tables (clusters) it is supposed to
    contain.
    
    Note that without this patch, MIN_L2_CACHE_SIZE will effectively take
    over the same role. However, providing space for just two L2 tables is
    not enough to be the default.
    Signed-off-by: NMax Reitz <mreitz@redhat.com>
    Reviewed-by: NAlberto Garcia <berto@igalia.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    bc85ef26
qcow2.c 95.5 KB