]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: implement QEMU NBD source reconnect delay attribute
authorChristian Nautze <christian.nautze@exoscale.ch>
Mon, 27 Feb 2023 11:15:33 +0000 (12:15 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 10 Mar 2023 08:38:05 +0000 (09:38 +0100)
commita9a4421ba825474008e04d602365e7bbbf75bfd2
tree666439eeff009da63daa5f5082972d642d970cb2
parent97dddef48c4451c7256be895d7679627edbbdbba
qemu: implement QEMU NBD source reconnect delay attribute

Currently it's only possible to set this parameter during domain
creation via QEMU commandline passthrough feature.
With the new delay attribute it's also possible to set this
parameter if you want to attach a new NBD disk
using "virsh attach-device domain device.xml" e.g.:

  <disk type='network' device='disk'>
    <driver name='qemu' type='raw'/>
    <source protocol='nbd' name='foo'>
      <host name='example.org' port='6000'/>
      <reconnect delay='10'/>
    </source>
    <target dev='vdb' bus='virtio'/>
  </disk>

Signed-off-by: Christian Nautze <christian.nautze@exoscale.ch>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/schemas/domaincommon.rng
src/conf/schemas/storagecommon.rng
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/qemu/qemu_block.c
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args
tests/qemuxml2argvdata/disk-network-nbd.xml
tests/qemuxml2xmloutdata/disk-network-nbd.xml