[vfio-users] usb does not wake up after G1/S3 standby

Alex Williamson alex.l.williamson at gmail.com
Tue Dec 8 20:00:59 UTC 2015


On Tue, Dec 8, 2015 at 10:20 AM, nicolas prochazka <
prochazka.nicolas at gmail.com> wrote:

> Hello,
> Host : linux 4.1 / qemu 2.4
> Guest windows 8
> usb passthrough  with libvirt xml declaration :
>
> <hostdev mode='subsystem' type='pci' managed='yes'>
>       <driver name='vfio'/>
>       <source>
>         <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
>       </source>
>       <alias name='hostdev0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
>     </hostdev>
>     <hostdev mode='subsystem' type='pci' managed='yes'>
>       <driver name='vfio'/>
>       <source>
>         <address domain='0x0000' bus='0x00' slot='0x1d' function='0x0'/>
>       </source>
>       <alias name='hostdev1'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/>
>     </hostdev>
>     <hostdev mode='subsystem' type='pci' managed='yes'>
>       <driver name='vfio'/>
>       <source>
>         <address domain='0x0000' bus='0x00' slot='0x14' function='0x0'/>
>       </source>
>       <alias name='hostdev2'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
> function='0x0'/>
>     </hostdev>
>
>
> when i do on host,
> echo mem > /sys/power/state
> and then i press power button, host and vm running as normal, except the
> usb devices are still power off.
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20151208/03215517/attachment.htm>


More information about the vfio-users mailing list