• K
    libvirt/qemu - support persistent attach/detach disks · ab9102c2
    KAMEZAWA Hiroyuki 提交于
    Support changes of disks by MODIFY_CONFIG for qemu.
    
    This patch includes patches for qemu's disk to support
    virDomainAt(De)tachDeviceFlags with VIR_DOMAIN_DEVICE_MODIFY_CONFIG.
    
    Other devices can be added incrementally.
    Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    
    * /src/conf/domain_conf.c
    (virDomainDiskIndexByName): returns array index of disk in vmdef.
    (virDomainDiskRemoveByName): removes a disk which has the name in vmdef.
    * src/qemu/qemu_driver.c
    (qemuDomainAttachDeviceConfig): add support for Disks.
    (qemuDomainDetachDeviceConfig): add support for Disks.
    ab9102c2
qemu_driver.c 215.7 KB