<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 8, 2015 at 10:20 AM, nicolas prochazka <span dir="ltr"><<a href="mailto:prochazka.nicolas@gmail.com" target="_blank">prochazka.nicolas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, </div><div>Host : linux 4.1 / qemu 2.4 </div><div>Guest windows 8 </div><div>usb passthrough  with libvirt xml declaration : </div><div><br></div><div><hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <driver name='vfio'/></div><div>      <source></div><div>        <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/></div><div>      </source></div><div>      <alias name='hostdev0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <driver name='vfio'/></div><div>      <source></div><div>        <address domain='0x0000' bus='0x00' slot='0x1d' function='0x0'/></div><div>      </source></div><div>      <alias name='hostdev1'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <driver name='vfio'/></div><div>      <source></div><div>        <address domain='0x0000' bus='0x00' slot='0x14' function='0x0'/></div><div>      </source></div><div>      <alias name='hostdev2'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/></div><div>    </hostdev></div><div><br></div><div><br></div><div>when i do on host, </div><div>echo mem > /sys/power/state  </div><div>and then i press power button, host and vm running as normal, except the usb devices are still power off.</div></div></blockquote><div><br></div><div>The devices are guest owned and the guest doesn't know that anything happened.  Perhaps you want to set libvirt to suspend the guest around the host being suspended, or maybe hotplug the assigned USB devices. </div></div></div></div>