PCI device pass through support

2012-11-28 Thread Krishna J
Hi Alex, I am trying to pass through a PCI device to the guest to compare the MSI interrupt latency with normal device pass through and pass through using VFIO framework. I used the following script for dev in $(ls /sys/bus/pci/devices/:06:00.0/iommu_group/devices); do     vendor=$(cat /sys

Re: PCI device pass through support

2012-11-28 Thread Alex Williamson
On Wed, 2012-11-28 at 16:32 +, Krishna J wrote: Hi Alex, I am trying to pass through a PCI device to the guest to compare the MSI interrupt latency with normal device pass through and pass through using VFIO framework. I used the following script for dev in $(ls /sys/bus/pci/devices

Re: Device pass-through

2012-01-15 Thread Gordon Messmer
I still poke at this when I get time. I notice that pci_update_mappings calls pci_bar_address, and the latter will always return PCI_BAR_UNMAPPED for this device. For the emulated devices, pci_bar_address will get an address with PCI_ROM_ADDRESS_ENABLE at some point, and pci_map_option_rom

Re: Device pass-through

2012-01-08 Thread Gordon Messmer
On 01/07/2012 02:21 PM, Gordon Messmer wrote: I'm certain that qemu-kvm loads both /usr/share/qemu-kvm/vgabios-cirrus.bin and /var/lib/libvirt/images/Radeon3470.rom, which seems correct. However, in the guest, both the virtual VGA card and the real PCI one have the same ROM, from

Re: Device pass-through

2012-01-07 Thread Gordon Messmer
On 01/06/2012 06:07 PM, Gordon Messmer wrote: /usr/libexec/qemu-kvm\ -vnc 127.0.0.1:0 -vga cirrus \ -device pci-assign,host=05:00.0,id=hostdev1,configfd=27,bus=pci.0,addr=0x7,romfile=/var/lib/libvirt/images/Radeon3470.rom Snipped a bunch of other args... I'm certain that qemu-kvm loads both

Re: Device pass-through

2012-01-06 Thread André Weidemann
On 06.01.2012 08:25, Gordon Messmer wrote: On 01/05/2012 11:07 AM, Gordon Messmer wrote: I started with an update to seabios, from the bundled version 0.6.1.2-8.el6 to a rebuilt package from F16, 0.6.2-3.el6. That's enough to get the guest to boot with the pass-through video card. It doesn't

Re: Device pass-through

2012-01-06 Thread Gordon Messmer
On 01/06/2012 01:31 AM, André Weidemann wrote: On 06.01.2012 08:25, Gordon Messmer wrote: Well, I finally figured out that I have to enable the reading of roms from the device by writing 1 to the rom node in /sys/. Now the problem is that the rom is 64k, and only 32k are making it into the

Re: Device pass-through

2012-01-05 Thread Gordon Messmer
On 01/03/2012 07:44 PM, Alex Williamson wrote: Yep, that's what I would have guessed, there's a 256MB resource. I'm not sure if the seabios you're using is mapping the MMIO hole efficiently enough to handle that. Can you test on new upstream qemu-kvm? Thanks, I'm not done poking the system,

Re: Device pass-through

2012-01-05 Thread Gordon Messmer
On 01/05/2012 11:07 AM, Gordon Messmer wrote: I started with an update to seabios, from the bundled version 0.6.1.2-8.el6 to a rebuilt package from F16, 0.6.2-3.el6. That's enough to get the guest to boot with the pass-through video card. It doesn't work, currently, and I'm pretty sure that's

Re: Device pass-through

2012-01-03 Thread Alex Williamson
On Mon, 2012-01-02 at 11:41 -0800, Gordon Messmer wrote: I'm going to summarize my questions first and write the long explanation afterward... 1: What happens when Linux rejects the aperture allocated by the BIOS for an AMD IOMMU? This is actually the GART aperture, which Linux will try

Re: Device pass-through

2012-01-03 Thread Gordon Messmer
Thanks, Alex. I really appreciate the reply. On 01/03/2012 01:34 PM, Alex Williamson wrote: This is actually the GART aperture, which Linux will try to use as an IOMMU. You can pretty much ignore this, but it may be wasting memory for no good reason if it's really hiding usable memory and

Re: Device pass-through

2012-01-03 Thread Alex Williamson
On Tue, 2012-01-03 at 16:29 -0800, Gordon Messmer wrote: Thanks, Alex. I really appreciate the reply. On 01/03/2012 01:34 PM, Alex Williamson wrote: This is actually the GART aperture, which Linux will try to use as an IOMMU. You can pretty much ignore this, but it may be wasting memory

Device pass-through

2012-01-02 Thread Gordon Messmer
I'm going to summarize my questions first and write the long explanation afterward... 1: What happens when Linux rejects the aperture allocated by the BIOS for an AMD IOMMU? 2: What is unsafe about the allow_unsafe_assigned_interrupts option? What are the potential consequences of its use?

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-26 Thread Yigal Korman
Hi, Thank you for the responses. I've managed to get further in the process while running KVM with Fedora rather than Ubuntu. I've gotten Windows 7 to recognize the graphics card but mark it with an error about hardware resources (I assume memory/interrupts). I've found the same error was

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-25 Thread Chris Wright
* Brian Jackson (i...@theiggy.com) wrote: On Saturday 23 January 2010 05:20:49 Yigal Korman wrote: I'm trying to pass a second video card to a Windows 7 virtual machine with KVM, and I get the following error: KVM doesn't support assigning graphics cards to VMs yet. There are people

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-25 Thread Kenni Lund
2010/1/26 Chris Wright chr...@sous-sol.org: Again, VT (or VT-x) isn't the same as VT-d.  So to be sure, you can grep dmesg for DMAR and IOMMU to verify that the chipset actually has VT-d support, that it's enabled, and that it's not broken (there are quite a few broken BIOS out there that

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-25 Thread Kenni Lund
2010/1/26 Kenni Lund ke...@kelu.dk: 2010/1/26 Chris Wright chr...@sous-sol.org: Again, VT (or VT-x) isn't the same as VT-d.  So to be sure, you can grep dmesg for DMAR and IOMMU to verify that the chipset actually has VT-d support, that it's enabled, and that it's not broken (there are quite

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-25 Thread Chris Wright
* Kenni Lund (ke...@kelu.dk) wrote: 2010/1/26 Kenni Lund ke...@kelu.dk: 2010/1/26 Chris Wright chr...@sous-sol.org: Again, VT (or VT-x) isn't the same as VT-d.  So to be sure, you can grep dmesg for DMAR and IOMMU to verify that the chipset actually has VT-d support, that it's enabled,

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-25 Thread Avi Kivity
On 01/26/2010 03:11 AM, Kenni Lund wrote: Can someone with write permissions to the wiki please add this? Everyone has write permissions, you just need an account. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. -- To unsubscribe from this list:

Re: PCIe device pass-through - No IOMMU, Failed to deassign device error

2010-01-23 Thread Brian Jackson
On Saturday 23 January 2010 05:20:49 Yigal Korman wrote: Hi, I'm trying to pass a second video card to a Windows 7 virtual machine with KVM, and I get the following error: KVM doesn't support assigning graphics cards to VMs yet. There are people working on it afaik, but I don't know the

Device pass through using KVM

2009-07-10 Thread VinothKumar S
Hi , My goal is to assign pci device using Vt-d capability. I have a Supermicro Server X8DTU-F motherboard. I verified that it had Vt-d capability and enabled it in BIOS. Iam using KVM-86 (as I had some compilation error in KVM-87).   My first try was to use Ubuntu 9.04 (with kvm

Re: Device pass through using KVM

2009-07-10 Thread VinothKumar S
Hi All, I apologize for the typo in my earlier mail. My first try failed and I was NOT able to get an IP address. Please clarify if there is any issue in my setup. Thanks, Vinoth. On Fri, Jul 10, 2009 at 5:47 PM, VinothKumar Svinot...@gmail.com wrote: Hi , My goal is