On Thu, 14 Nov 2019 at 12:28, ToddAndMargo via users <
users@lists.fedoraproject.org> wrote:

> On 11/13/19 5:22 PM, George N. White III wrote:
> > Has the USB controller been assigned as a PCI device to the VM?   If so
> > it would be
> > detached from the host machine.
>
> Controller USB 0
> Controller: Type USB; Model USB2
> XML:
>      <controller type="usb" index="0" model="ich9-ehci1">
>        <address type="pci" domain="0x0000" bus="0x00" slot="0x05"
> function="0x7"/>
>      </controller>
>

I think this indicates that the USB controller is managed as a PCI device,
but it has been a few years since I looked at this.

I found https://libvirt.org/formatdomain.html#elementsHostDev:

"For PCI devices, when managed is "yes" it is detached from the host before
being passed on to the guest and reattached to the host after the guest
exits. If managed is omitted or "no", the user is responsible to call
virNodeDeviceDetachFlags (or virsh nodedev-detach before starting the guest
or hot-plugging the device and virNodeDeviceReAttach (or virsh
nodedev-reattach) after hot-unplug or stopping the guest."

Since managed is omitted, it seems the automatic detach/reattach should not
be done.

https://libvirt.org/formatdomain.html says:
"Controllers  <https://libvirt.org/formatdomain.html#elementsControllers>

Depending on the guest architecture, some device buses can appear more than
once, with a group of virtual devices tied to a virtual controller.
Normally, libvirt can automatically infer such controllers without
requiring explicit XML markup, but sometimes it is necessary to provide an
explicit controller element, notably when planning the PCI topology
<https://libvirt.org/pci-hotplug.html> for guests where device hotplug is
expected."






>
>
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>


-- 
George N. White III
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to