Dear George please find attached the three files as requested. I have used iommu=soft
in the grub command line for the kernel in the domU as explained before. many thanks Francis From: "George Dunlap" <dunl...@umich.edu> To: "francis" <fran...@choughs.net>, "centos-virt" <centos-virt@centos.org> Sent: Monday, 16 May, 2016 10:29:09 Subject: Re: [CentOS-virt] PCI Passthrough not working On Thu, May 12, 2016 at 12:11 PM, Francis Greaves <fran...@choughs.net> wrote: > I am running Xen 4.6 on CentOS 7 in a Dell Poweredge T430 > I need PCI Passthrough to get USB working. I am following the Xenproject > Wiki > I have enabled the Virtulasation in the BIOS. > I have xen_pciback as a module > I have issued the command: > > xl pci-assignable-add 00:1a0.0 and it shows up fine when I issue this xl > pci-assignable-list > > I have pci=['00:1a.0'] on the DomU config file > I have added this iommu=soft and swiotlb=force both together and separately > to the kernel command line > in the DomU (running Debian 8), but I get the same error each time. > > libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation > not permitted > libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add > failed: -3 Can you please attach the following: 1. The complete domU config file 2. A complete log of the command and all the output 3. The full output of "xl dmesg" just after you run the command Thanks, -George
#xl create metsat.cfg -c ---------------------------------------------------------------- the Grub menus selection is Debian GNU/Linux, with Linux 3.2.0-4-686-pae then after the Grub menu as the domU tries to boot you get this ---------------------------------------------------------------- libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation not permitted libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add failed: -3 libxl: error: libxl.c:1591:libxl__destroy_domid: non-existant domain 34 libxl: error: libxl.c:1549:domain_destroy_callback: unable to destroy guest with domid 34 libxl: error: libxl.c:1476:domain_destroy_cb: destruction of domain 34 failed ---------------------------------------------------------------- and back to the dom0 prompt any help much appreciated
metsat.cfg
Description: Binary data
Xen 4.6.1-6.el7 (XEN) Xen version 4.6.1-6.el7 (mockbu...@centos.org) (gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)) debug=n Mon Apr 18 15:19:15 UTC 2016 (XEN) Latest ChangeSet: Wed Mar 16 16:51:27 2016 +0000 git:ac630b2-dirty (XEN) Bootloader: GRUB 2.02~beta2 (XEN) Command line: placeholder dom0_mem=13312M,max:14336M dom0_max_vcpus=6 dom0_vcpus_pin (XEN) Video information: (XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds (XEN) Disc information: (XEN) Found 4 MBR signatures (XEN) Found 4 EDD information structures (XEN) Xen-e820 RAM map: (XEN) 0000000000000000 - 000000000009c000 (usable) (XEN) 000000000009c000 - 00000000000a0000 (reserved) (XEN) 00000000000e0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 0000000067496000 (usable) (XEN) 0000000067496000 - 000000006f49e000 (reserved) (XEN) 000000006f49e000 - 0000000079f89000 (usable) (XEN) 0000000079f89000 - 000000007ab0b000 (reserved) (XEN) 000000007ab0b000 - 000000007b53b000 (ACPI NVS) (XEN) 000000007b53b000 - 000000007b6c0000 (ACPI data) (XEN) 000000007b6c0000 - 000000007b6e9000 (usable) (XEN) 000000007b6e9000 - 000000007b6ff000 (ACPI data) (XEN) 000000007b6ff000 - 000000007b700000 (usable) (XEN) 000000007b700000 - 0000000090000000 (reserved) (XEN) 00000000feda8000 - 00000000fedac000 (reserved) (XEN) 00000000ff310000 - 0000000100000000 (reserved) (XEN) 0000000100000000 - 0000000880000000 (usable) (XEN) ACPI: RSDP 000FE320, 0024 (r2 DELL ) (XEN) ACPI: XSDT 7B6BE0E8, 00AC (r1 DELL PE_SC3 0 1000013) (XEN) ACPI: FACP 7B6BA000, 00F4 (r4 DELL PE_SC3 0 DELL 1) (XEN) ACPI: DSDT 7B6A8000, DDAE (r2 DELL PE_SC3 3 DELL 1) (XEN) ACPI: FACS 7B538000, 0040 (XEN) ACPI: MCEJ 7B6BD000, 0130 (r1 INTEL 1 INTL 100000D) (XEN) ACPI: WD__ 7B6BC000, 0134 (r1 DELL PE_SC3 1 DELL 1) (XEN) ACPI: SLIC 7B6BB000, 0024 (r1 DELL PE_SC3 1 DELL 1) (XEN) ACPI: HPET 7B6B9000, 0038 (r1 DELL PE_SC3 1 DELL 1) (XEN) ACPI: APIC 7B6B8000, 085C (r2 DELL PE_SC3 0 DELL 1) (XEN) ACPI: MCFG 7B6B7000, 003C (r1 DELL PE_SC3 1 DELL 1) (XEN) ACPI: PMCT 7B6B6000, 0064 (r1 DELL PE_SC3 0 DELL 1) (XEN) ACPI: SSDT 7B5DC000, CBC9B (r2 DELL PE_SC3 4000 INTL 20121114) (XEN) ACPI: SSDT 7B5DA000, 1C94 (r2 DELL PE_SC3 2 INTL 20121114) (XEN) ACPI: SSDT 7B5D9000, 006E (r2 DELL PE_SC3 2 INTL 20121114) (XEN) ACPI: PRAD 7B5D8000, 0132 (r2 DELL PE_SC3 2 INTL 20121114) (XEN) ACPI: DMAR 7B6FE000, 0148 (r1 DELL PE_SC3 1 DELL 1) (XEN) ACPI: HEST 7B6FD000, 017C (r1 DELL PE_SC3 2 DELL 1) (XEN) ACPI: BERT 7B6FC000, 0030 (r1 DELL PE_SC3 2 DELL 1) (XEN) ACPI: ERST 7B6FB000, 0230 (r1 DELL PE_SC3 2 DELL 1) (XEN) ACPI: EINJ 7B6FA000, 0150 (r1 DELL PE_SC3 2 DELL 1) (XEN) System RAM: 32543MB (33324316kB) (XEN) Domain heap initialised (XEN) ACPI: 32/64X FACS address mismatch in FADT - 7b538000/0000000000000000, using 32 (XEN) Processor #0 7:15 APIC version 21 (XEN) Processor #16 7:15 APIC version 21 (XEN) Processor #2 7:15 APIC version 21 (XEN) Processor #18 7:15 APIC version 21 (XEN) Processor #4 7:15 APIC version 21 (XEN) Processor #20 7:15 APIC version 21 (XEN) Processor #6 7:15 APIC version 21 (XEN) Processor #22 7:15 APIC version 21 (XEN) Processor #1 7:15 APIC version 21 (XEN) Processor #17 7:15 APIC version 21 (XEN) Processor #3 7:15 APIC version 21 (XEN) Processor #19 7:15 APIC version 21 (XEN) Processor #5 7:15 APIC version 21 (XEN) Processor #21 7:15 APIC version 21 (XEN) Processor #7 7:15 APIC version 21 (XEN) Processor #23 7:15 APIC version 21 (XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23 (XEN) IOAPIC[1]: apic_id 9, version 32, address 0xfec01000, GSI 24-47 (XEN) IOAPIC[2]: apic_id 10, version 32, address 0xfec40000, GSI 48-71 (XEN) Enabling APIC mode: Phys. Using 3 I/O APICs (XEN) Not enabling x2APIC (upon firmware request) (XEN) xstate_init: using cntxt_size: 0x340 and states: 0x7 (XEN) CMCI: threshold 0x2 too large for CPU0 bank 17, using 0x1 (XEN) CMCI: threshold 0x2 too large for CPU0 bank 18, using 0x1 (XEN) CMCI: threshold 0x2 too large for CPU0 bank 19, using 0x1 (XEN) Using scheduler: SMP Credit Scheduler (credit) (XEN) Detected 2996.580 MHz processor. (XEN) Initing memory sharing. (XEN) Intel VT-d iommu 0 supported page sizes: 4kB, 2MB, 1GB. (XEN) Intel VT-d iommu 1 supported page sizes: 4kB, 2MB, 1GB. (XEN) Intel VT-d Snoop Control enabled. (XEN) Intel VT-d Dom0 DMA Passthrough not enabled. (XEN) Intel VT-d Queued Invalidation enabled. (XEN) Intel VT-d Interrupt Remapping enabled. (XEN) Intel VT-d Shared EPT tables enabled. (XEN) I/O virtualisation enabled (XEN) - Dom0 mode: Relaxed (XEN) Interrupt remapping enabled (XEN) Enabled directed EOI with ioapic_ack_old on! (XEN) ENABLING IO-APIC IRQs (XEN) -> Using old ACK method (XEN) Platform timer is 14.318MHz HPET (XEN) Allocated console ring of 32 KiB. (XEN) VMX: Supported advanced features: (XEN) - APIC MMIO access virtualisation (XEN) - APIC TPR shadow (XEN) - Extended Page Tables (EPT) (XEN) - Virtual-Processor Identifiers (VPID) (XEN) - Virtual NMI (XEN) - MSR direct-access bitmap (XEN) - Unrestricted Guest (XEN) - APIC Register Virtualization (XEN) - Virtual Interrupt Delivery (XEN) - Posted Interrupt Processing (XEN) - VMCS shadowing (XEN) - VM Functions (XEN) HVM: ASIDs enabled. (XEN) HVM: VMX enabled (XEN) HVM: Hardware Assisted Paging (HAP) detected (XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB (XEN) CMCI: threshold 0x2 too large for CPU8 bank 17, using 0x1 (XEN) CMCI: threshold 0x2 too large for CPU8 bank 18, using 0x1 (XEN) CMCI: threshold 0x2 too large for CPU8 bank 19, using 0x1 (XEN) Brought up 16 CPUs (XEN) mtrr: your CPUs had inconsistent variable MTRR settings (XEN) Dom0 has maximum 1032 PIRQs (XEN) *** LOADING DOMAIN 0 *** (XEN) Xen kernel: 64-bit, lsb, compat32 (XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x237c000 (XEN) PHYSICAL MEMORY ARRANGEMENT: (XEN) Dom0 alloc.: 0000000860000000->0000000864000000 (3387346 pages to be allocated) (XEN) Init. ramdisk: 000000087efd2000->000000087ffff314 (XEN) VIRTUAL MEMORY ARRANGEMENT: (XEN) Loaded kernel: ffffffff81000000->ffffffff8237c000 (XEN) Init. ramdisk: 0000000000000000->0000000000000000 (XEN) Phys-Mach map: ffffffff8237c000->ffffffff83d7c000 (XEN) Start info: ffffffff83d7c000->ffffffff83d7c4b4 (XEN) Page tables: ffffffff83d7d000->ffffffff83da0000 (XEN) Boot stack: ffffffff83da0000->ffffffff83da1000 (XEN) TOTAL: ffffffff80000000->ffffffff84000000 (XEN) ENTRY ADDRESS: ffffffff81d761f0 (XEN) Dom0 has maximum 6 VCPUs (XEN) Scrubbing Free RAM on 1 nodes using 8 CPUs (XEN) ..................................done. (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Std. Loglevel: Errors and warnings (XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings) (XEN) Xen is relinquishing VGA console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) Freed 292kB init memory. (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom6. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom6 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom7. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom7 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom8. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom8 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom9. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom9 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom10. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom10 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom11. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom11 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom12. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom12 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom13. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom13 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom18. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom18 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom22. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom22 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom24. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom24 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom28. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom28 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom33. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom33 failed (-1) (XEN) [VT-D] It's disallowed to assign 0000:00:1a.0 with shared RMRR at 7b800000 for Dom34. (XEN) XEN_DOMCTL_assign_device: assign 0000:00:1a.0 to dom34 failed (-1)
_______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt