]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce @guestReset to hostdev's <source/>
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jul 2022 11:11:06 +0000 (13:11 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jul 2022 14:00:50 +0000 (16:00 +0200)
commit85ea114016b34bb841ee0188c8d2509ca6c28355
tree2eedbd1314b51483b441fd020708f327258c7daf
parentdcfbfffd6a8abe54b49881fb3705fd2b82efb3d3
conf: Introduce @guestReset to hostdev's <source/>

Some USB devices have a buggy firmware that either crashes on
device reset, or make the device unusable in some other way.
Fortunately, QEMU offers a way to skip device reset either
completely, or if device is not initialized yet. Expose this
ability to users under:

    <hostdev mode='subsystem' type='usb'>
      <source guestReset='off'/>
    </hostdev>

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/schemas/domaincommon.rng
tests/qemuxml2argvdata/hostdev-usb-address.xml
tests/qemuxml2xmloutdata/hostdev-usb-address.x86_64-latest.xml