• E
    qemu: adjust maxmem/maxvcpu computation · 60f7303c
    Eric Blake 提交于
    https://bugzilla.redhat.com/show_bug.cgi?id=1038363
    
    If a domain has a different maximum for persistent and live maxmem
    or max vcpus, then it is possible to hit cases where libvirt
    refuses to adjust the current values or gets halfway through
    the adjustment before failing.  Better is to determine up front
    if the change is possible for all requested flags.
    
    Based on an idea by Geoff Franks.
    
    * src/qemu/qemu_driver.c (qemuDomainSetMemoryFlags): Compute
    correct maximum if both live and config are being set.
    (qemuDomainSetVcpusFlags): Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    60f7303c
qemu_driver.c 535.2 KB