Just fixed my upload scripts - please can you test again?
That's better now, thanks.
Just fixed my upload scripts - please can you test again?
If you really want to waste our time, I can burn and send you a CD with all sources included.
If you pinpoint git checkout to a specific branch, it should be quite easy to make simple and small source distribution, that compiles and builds correct binary.
CONFIG_DMAR_DEFAULT_ON=y
CONFIG_DMAR=y
My initial test ran without it, but KVM howto tells that it's required. Maybe some devices don't need it and I was just lucky.Do we need CONFIG_INTR_REMAP?
lspci
01:04.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
01:04.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
01:04.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
How may I attach it to my VM?lspci -n
01:04.0 0c03: 1106:3038 (rev 61)
01:04.1 0c03: 1106:3038 (rev 61)
01:04.2 0c03: 1106:3104 (rev 63)
Next I do:args: -pcidevice host=01:04.0(,host=01:04.1)
But it's not work. Start VM is fine! VM not detect a new hardware.proxmox-52:~# qm start 101
device: 01:04.0: driver="pci-assign" host="01:04.0"
proxmox-52:~# dmesg | grep -e DMAR -e IOMMU
ACPI: DMAR 000000007f79e0c0 00140 (v01 AMI OEMDMAR 00000001 MSFT 00000097)
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fbffe000 flags: 0x1
IOMMU fbffe000: ver 1:0 cap c90780106f0462 ecap f020fe
DMAR: RMRR base: 0x000000000e5000 end: 0x000000000e7fff
DMAR: RMRR base: 0x0000007f7ed000 end: 0x0000007f7fffff
DMAR: ATSR flags: 0x0
IOMMU 0xfbffe000: using Queued invalidation
IOMMU: Setting RMRR:
IOMMU: Setting identity map for device 0000:00:1d.0 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.1 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.2 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.3 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.7 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.0 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.1 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.7 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.0 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.1 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.2 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.3 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.7 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.0 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.1 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.7 [0xe5000 - 0xe8000]
IOMMU: Prepare 0-16MiB unity mapping for LPC
IOMMU: Setting identity map for device 0000:00:1f.0 [0x0 - 0x1000000]
proxmox-52:~# echo "1106 3038" > /sys/bus/pci/drivers/pci-stub/new_id
proxmox-52:~# echo 0000:01:04.0 > /sys/bus/pci/devices/0000\:01\:04.0/driver/unbind
proxmox-52:~# echo 0000:01:04.1 > /sys/bus/pci/devices/0000\:01\:04.1/driver/unbind
proxmox-52:~# echo 0000:01:04.2 > /sys/bus/pci/devices/0000\:01\:04.2/driver/unbind
#qm monitor 101
qm> pci_add pci_addr=auto host host=01:04.0
Error initializing device pci-assign
failed to add host=01:04.0
# dmesg | grep -e DMAR -e IOMMU
ACPI: DMAR 000000007f79e0c0 00140 (v01 AMI OEMDMAR 00000001 MSFT 00000097)
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fbffe000 flags: 0x1
IOMMU fbffe000: ver 1:0 cap c90780106f0462 ecap f020fe
DMAR: RMRR base: 0x000000000e5000 end: 0x000000000e7fff
DMAR: RMRR base: 0x0000007f7ed000 end: 0x0000007f7fffff
DMAR: ATSR flags: 0x0
IOMMU 0xfbffe000: using Queued invalidation
IOMMU: Setting RMRR:
IOMMU: Setting identity map for device 0000:00:1d.0 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.1 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.2 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.3 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.7 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.0 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.1 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1a.7 [0x7f7ed000 - 0x7f800000]
IOMMU: Setting identity map for device 0000:00:1d.0 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.1 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.2 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.3 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1d.7 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.0 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.1 [0xe5000 - 0xe8000]
IOMMU: Setting identity map for device 0000:00:1a.7 [0xe5000 - 0xe8000]
IOMMU: Prepare 0-16MiB unity mapping for LPC
IOMMU: Setting identity map for device 0000:00:1f.0 [0x0 - 0x1000000]
Please help me, how to work with my real USB controller into VM.
Well, you just have to try with different devices. I suggest to first try with a network card, this usually works best with PCI passthrough. Some devices may not work at all in passthrough mode, this is highly dependant on hardware and may involve some magic
If you want to pass some USB devices to the VM, maybe hostusb option works better.
It's no working with hostusb option. I have a USB->to->COM port controller device. When I connect it, VM is detect a new hardware. I setup a driver for this one. It is correct, but I can't read data from it. It not working.If you want to pass some USB devices to the VM, maybe hostusb option works better.
What means that? The BIOS of my mother board say me about PCI bridge, but I'm not clean about it.VT-d spec specifies that all conventional PCI devices behind a PCIe-to PCI/PCI-X bridge or conventional PCI bridge can only be collectively assigned to the same guest. PCIe devices do not have this restriction.
It is shit...
I cry.
Yes. I understand about it. I want to fuse several dedicated server into VM. Oh... Intel-VD is not a solution for all problem with hardware.Well, most people use virtualization just to avoid problems with hardware. Using pci pass-through brings those problems back to you. So think twice - do you really need it.