On Tue, Dec 8, 2015 at 10:20 AM, nicolas prochazka <
prochazka.nico...@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.
_______________________________________________
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users

Reply via email to