First of all in Qubes Manager I can attach this usb modem only in HVM mode ('ERROR: devices tab: Can't attach PCI device to VM in pvh mode').
So I changed in VM on HVM mode and attached just usb slot.
Then I tried to turn on my VM but I got 2 same error messages (first one in windows and the second one on the top right corner):
'ERROR: Start failed: internal error: Non-endpoint PCI devices cannot be assigned to guests, see /var/lob/libvirt/libxl/libxl-driver.log'
'Qube Status: usb
Domain usb has failed to start: Internal error: Non-endpoint PCI devices cannot be assigned to guests'.
Tell me please what am I missing in Qubes 4.0?
P.S. In Qubes 3.2 (when I had some xenlight error) I just used this command:
'qvm-prefs -s vmname pci_strictreset false'. But here I suppose it's another problem.
Thank you for your answer.
Before your message I tried to attach this device:
'00:1d.0 PCI bridge: Intel Corporation Device a330 (rev f0)'
and you saw which error I got.
After your message I thought maybe I am choosing not correct device and now I am choosing this device:
'00:14.0 USB controller: Intel Corporation Device a36d (rev 10)'
and got another error messages:
'ERROR: Start failed: internal error: Unable to reset PCI device 0000:00:14.0: no FLR, PM reset or bus reset available, see /var/log/libvirt/libxl/libxl-driver.log for details'
'Qube Status: usb
Domain usb has failed to start: internal error: Unable to reset PCI device 0000:00:14.0: no FLR, PM reset or bus reset available'.
This is what I got when run this 2 commands:
[user@dom0 ~]$ lspci
00:00.0 Host bridge: Intel Corporation Device 3ec4 (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Device a379 (rev 10)
00:14.0 USB controller: Intel Corporation Device a36d (rev 10)
00:14.2 RAM memory: Intel Corporation Device a36f (rev 10)
00:16.0 Communication controller: Intel Corporation Device a360 (rev 10)
00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)
00:1d.0 PCI bridge: Intel Corporation Device a330 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Device a335 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Device a336 (rev f0)
00:1d.7 PCI bridge: Intel Corporation Device a337 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Device a348 (rev 10)
00:1f.4 SMBus: Intel Corporation Device a323 (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a324 (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M [GeForce GTX 1070 Mobile] (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a808
03:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
05:00.0 SD Host controller: Realtek Semiconductor Co., Ltd. RTS5250 PCI Express Card Reader (rev 01)
[user@dom0 Desktop]$ lspci -t
-[0000:00]-+-00.0
+-01.0-[01]----00.0
+-02.0
+-08.0
+-12.0
+-14.0
+-14.2
+-16.0
+-17.0
+-1d.0-[02]----00.0
+-1d.5-[03]----00.0
+-1d.6-[04]----00.0
+-1d.7-[05]----00.0
+-1f.0
+-1f.3
+-1f.4
\-1f.5
What do you mean when you say "leaf device"?
It means that I have not any solution for this modem in Qubes. Because I can't assign this device to sys-net without all devices which I already using (for example usb mouse and usb flash drives).