• P
    video: cleanup usage of vram attribute and update documentation · 81ba2298
    Pavel Hrdina 提交于
    The vram attribute was introduced to set the video memory but it is
    usable only for few hypervisors excluding QEMU/KVM and the old XEN
    driver. Only in case of QEMU the vram was used for QXL.
    
    This patch updates the documentation to reflect current code in libvirt
    and also changes the cases when we will set the default vram attribute.
    It also fixes existing strange default value for VGA devices 9MB to 16MB
    because the video ram should be rounded to power of two.
    
    The change of default value could affect migrations but I found out that
    QEMU always round the video ram to power of two internally so it's safe
    to change the default value to the next closest power of two and also
    silently correct every domain XML definition. And it's also safe because
    we don't pass the value to QEMU.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1076098Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
    81ba2298
domain_conf.c 690.2 KB