Hi Marek,
I did a new test.
I noted that the problem is when I connect the ethernet cable and the sys-net is trying to establish the connection.
dmesg in sys-net:
[ 121.407624] usbip_core: USB/IP Core v1.0.0
[ 121.409482] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller
[ 121.409675] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 2
[ 121.416624] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 121.416638] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 121.416646] usb usb2: Product: USB/IP Virtual Host Controller
[ 121.416653] usb usb2: Manufacturer: Linux 4.4.14-11.pvops.qubes.x86_64 vhci_hcd
[ 121.416661] usb usb2: SerialNumber: vhci_hcd
[ 121.416839] hub 2-0:1.0: USB hub found
[ 121.416853] hub 2-0:1.0: 8 ports detected
[ 121.418525] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0
[ 121.471202] vhci_hcd vhci_hcd: rhport(0) sockfd(0) devid(196613) speed(3) speed_str(high-speed)
[ 121.720082] usb 2-1: new high-speed USB device number 2 using vhci_hcd
[ 121.925177] usb 2-1: new high-speed USB device number 3 using vhci_hcd
[ 122.130090] usb 2-1: new high-speed USB device number 4 using vhci_hcd
[ 122.130123] usb 2-1: SetAddress Request (4) to port 0
[ 122.152079] usb 2-1: New USB device found, idVendor=0b95, idProduct=1790
[ 122.152104] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 122.152119] usb 2-1: Product: AX88179
[ 122.152132] usb 2-1: Manufacturer: ASIX Elec. Corp.
[ 122.152144] usb 2-1: SerialNumber: 000000000000:9
[ 123.579324] ax88179_178a 2-1:1.0 eth0: register 'ax88179_178a' at usb-vhci_hcd-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, a0:ce:c8:01:9d:5a
[ 123.585169] usbcore: registered new interface driver ax88179_178a
[ 123.615815] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 123.963310] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 144.539753] ax88179_178a 2-1:1.0 eth0: ax88179 - Link status is: 1
[ 144.552712] ax88179_178a 2-1:1.0 eth0: Failed to write reg index 0x000d: -32
[ 144.555011] ax88179_178a 2-1:1.0 eth0: Failed to write reg index 0x000d: -32
[ 144.557002] ax88179_178a 2-1:1.0 eth0: Failed to write reg index 0x000d: -32
[ 144.558848] ax88179_178a 2-1:1.0 eth0: Failed to write reg index 0x000d: -32
[ 144.559588] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
dmesg in sys-usb:
[ 78.700163] usb 3-3: new high-speed USB device number 5 using xhci_hcd
[ 78.870601] usb 3-3: New USB device found, idVendor=0b95, idProduct=1790
[ 78.870633] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 78.870652] usb 3-3: Product: AX88179
[ 78.870664] usb 3-3: Manufacturer: ASIX Elec. Corp.
[ 78.870675] usb 3-3: SerialNumber: 000000000000:9
[ 80.256798] ax88179_178a 3-3:1.0 eth0: register 'ax88179_178a' at usb-0000:00:00.0-3, ASIX AX88179 USB 3.0 Gigabit Ethernet, a0:ce:c8:01:9d:5a
[ 80.258943] usbcore: registered new interface driver ax88179_178a
[ 80.264284] ax88179_178a 3-3:1.0 enp0s0u3: renamed from eth0
[ 80.279556] IPv6: ADDRCONF(NETDEV_UP): enp0s0u3: link is not ready
[ 80.599923] IPv6: ADDRCONF(NETDEV_UP): enp0s0u3: link is not ready
[ 115.789191] usbip_core: USB/IP Core v1.0.0
[ 115.789675] usbcore: registered new device driver usbip-host
[ 115.789682] usbip_host: USB/IP Host Driver v1.0.0
[ 115.795928] ax88179_178a 3-3:1.0 enp0s0u3: unregister 'ax88179_178a' usb-0000:00:00.0-3, ASIX AX88179 USB 3.0 Gigabit Ethernet
[ 115.809871] usbip-host 3-3: usbip-host: register new device (bus 3 dev 5)
[ 115.818524] usbip-host 3-3: stub up
[ 116.535461] usbip-host 3-3: endpoint 0 is stalled
[ 117.579056] usbip-host 3-3: usb_set_interface done: inf 0 alt 0
[ 118.314577] usbip-host 3-3: endpoint 0 is stalled
[ 138.900818] usbip-host 3-3: endpoint 0 is stalled
[ 138.903418] usbip-host 3-3: endpoint 0 is stalled
[ 138.905414] usbip-host 3-3: endpoint 0 is stalled
[ 138.907346] usbip-host 3-3: endpoint 0 is stalled
[ 138.917366] usbip-host 3-3: endpoint 0 is stalled
[ 138.951366] general protection fault: 0000 [#1] SMP
[ 138.951388] Modules linked in: usbip_host usbip_core ax88179_178a usbnet mii fuse xt_nat xen_netback xt_REDIRECT nf_nat_redirect cmac ip6table_filter ip6_tables xt_conntrack bnep ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack btusb btrtl btbcm btintel uvcvideo bluetooth videobuf2_vmalloc rfkill videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media joydev hid_multitouch rtsx_pci_ms memstick rtsx_pci_sdmmc mmc_core xhci_pci xhci_hcd ehci_pci rtsx_pci ehci_hcd mfd_core intel_rapl iosf_mbi x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul crc32c_intel xen_pcifront pcspkr dummy_hcd udc_core u2mfn(O) xen_blkback xenfs xen_privcmd xen_blkfront
[ 138.951498] CPU: 0 PID: 1281 Comm: stub_rx Tainted: G O 4.4.14-11.pvops.qubes.x86_64 #1
[ 138.951508] task: ffff88000fd93a00 ti: ffff88000d86c000 task.ti: ffff88000d86c000
[ 138.951516] RIP: e030:[<ffffffff81202d0f>] [<ffffffff81202d0f>] __kmalloc_track_caller+0x9f/0x250
[ 138.951539] RSP: e02b:ffff88000d86fd98 EFLAGS: 00010246
[ 138.951557] RAX: 0008000800160140 RBX: 00000000024000c0 RCX: 0000000000000000
[ 138.951563] RDX: 00000000000012bc RSI: 0000000000000000 RDI: 000000000001a0a0
[ 138.951578] RBP: ffff88000d86fdd0 R08: ffff880018c1a0a0 R09: ffff880016801e00
[ 138.951583] R10: 0008000800160140 R11: ffffea000020f7c0 R12: 00000000024000c0
[ 138.951598] R13: 0000000000000008 R14: ffffffffa03072fa R15: ffff880016801e00
[ 138.951607] FS: 0000000000000000(0000) GS:ffff880018c00000(0000) knlGS:0000000000000000
[ 138.951615] CS: e033 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 138.951620] CR2: 00007f51f29c7000 CR3: 000000000d87b000 CR4: 0000000000042660
[ 138.951625] Stack:
[ 138.951629] ffff88000d86fde0 ffffffff81200a99 0000000000000008 ffff88000d86fe88
[ 138.951639] ffff88000d86fe60 ffff88000d9d5240 ffff8800083df000 ffff88000d86fdf0
[ 138.951648] ffffffff811be720 ffff88000834f800 ffff880015828b00 ffff88000d86fe40
[ 138.951657] Call Trace:
[ 138.951665] [<ffffffff81200a99>] ? __kmalloc+0x1d9/0x260
[ 138.951674] [<ffffffff811be720>] kmemdup+0x20/0x50
[ 138.951682] [<ffffffffa03072fa>] stub_recv_cmd_submit+0x13a/0x7d0 [usbip_host]
[ 138.951691] [<ffffffffa0307bba>] stub_rx_loop+0x22a/0x2a0 [usbip_host]
[ 138.951698] [<ffffffffa0307990>] ? stub_recv_cmd_submit+0x7d0/0x7d0 [usbip_host]
[ 138.951708] [<ffffffff810bd548>] kthread+0xd8/0xf0
[ 138.951714] [<ffffffff810bd470>] ? kthread_create_on_node+0x190/0x190
[ 138.951722] [<ffffffff81756c8f>] ret_from_fork+0x3f/0x70
[ 138.951728] [<ffffffff810bd470>] ? kthread_create_on_node+0x190/0x190
[ 138.951734] Code: 49 83 78 10 00 4d 8b 10 0f 84 3b 01 00 00 4d 85 d2 0f 84 32 01 00 00 49 63 41 20 49 8b 39 4c 01 d0 40 f6 c7 0f 0f 85 9e 01 00 00 <48> 8b 18 48 8d 4a 01 4c 89 d0 65 48 0f c7 0f 0f 94 c0 84 c0 74
[ 138.951793] RIP [<ffffffff81202d0f>] __kmalloc_track_caller+0x9f/0x250
[ 138.951801] RSP <ffff88000d86fd98>
[ 138.951838] ---[ end trace f65ee14bbe44ac1e ]---
And when I try to detach the device, it returns an error:
[user@dom0 ~]$ qvm-usb
sys-usb:3-3 0b95:1790 ASIX_Elec._Corp._AX88179_000000000000:9
sys-usb:3-9 8087:07dc 8087_07dc
sys-usb:3-6 06cb:1ac3 SYNAPTICS_Synaptics_Large_Touch_Screen
sys-usb:3-11 0bda:573c CN0Y2TKG7248741DA3RDA00_Integrated_Webcam_HD_200901010001
[user@dom0 ~]$ qvm-usb -a sys-net sys-usb:3-3
[user@dom0 ~]$ qvm-usb -d sys-usb:3-3
Traceback (most recent call last):
File "/usr/bin/qvm-usb", line 141, in <module>
main()
File "/usr/bin/qvm-usb", line 128, in main
usb_detach(qvm_collection, attached_to, dev)
File "/usr/lib64/python2.7/site-packages/qubes/qubesutils.py", line 662, in usb_detach
raise QubesException('Device detach failed')
qubes.qubes.QubesException: Device detach failed
[user@dom0 ~]$ qvm-usb
sys-usb:3-3 0b95:1790 ASIX_Elec._Corp._AX88179_000000000000:9 (attached to sys-net)
sys-usb:3-9 8087:07dc 8087_07dc
sys-usb:3-6 06cb:1ac3 SYNAPTICS_Synaptics_Large_Touch_Screen
sys-usb:3-11 0bda:573c CN0Y2TKG7248741DA3RDA00_Integrated_Webcam_HD_200901010001
After some time the VM sys-usb is restarted automatically.
Regards