Re: [Qemu-devel] Template for developing a Qe mu device with PCIe and MSI-X

2010-09-02 Thread Adnan Khaleel
During bootup, I also see the following error message: pci :40:00.0: BAR 0 bad alignment 20: 0x00-0x1f Any idea whats causing this? AK _ From: Isaku Yamahata [mailto:yamah...@valinux.co.jp] To: Adnan Khaleel [mailto:ad...@khaleel.us] Cc: Cam Macdone

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe and MSI-X

2010-09-02 Thread Adnan Khaleel
I've tried everything you mentioned and I still get the same problem. The only thing that seems to avoid that issue is if I reduce the aperture size from 0x20ull to 0x200ull. Here is the relevant section of code: static const unsigned long long BAR_Regions[6][2] = { // len , ty

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe?and MSI-X

2010-08-26 Thread Adnan Khaleel
Hi there. I should have sent a lot of these with my note yesterday but I was in a hurry to get the files to you first. See my comments below and thanks again. AK pcie_msix_write_config() should call pci_default_write_config() unless you did it so intentionally.I've made this change. Than

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe?and MSI-X

2010-08-20 Thread Adnan Khaleel
After messing around with bcc, as86 and ld86 I finally got the vgabios to compile. Everything works as it should I'm guessing. I've attached the output from lspci from the guest. I'll spend sometime looking at the device models and see how I can implement a model of what I'm interested in. Is

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe?and MSI-X

2010-08-20 Thread Adnan Khaleel
I'm not sure what the problem was but I had checked out the code on a windows machine and then copied it over to a linux box. That was causing problems somehow. I've managed to compile qemu and seabios but vgabios is taking forever to compile. The problem seems to be bcc. I've tried a simple he

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe and MSI-X

2010-08-19 Thread Adnan Khaleel
Isaku, I'm having some difficulties building the sources, I get the following message *akhal...@yar95 qemu-q35 $ ./configure --help : bad interpreter: No such file or directory And I get a similar error while compiling seabios as well. What shell are you using or am I missing something? I'm com

Re: [Qemu-devel] Template for developing a Qe mu device with PCIe and MSI-X

2010-08-19 Thread Adnan Khaleel
Hi Isaku, thank you very much for your very detailed response. I have a few questions, see below. Thanks again, Adnan Qemu doesn't support pcie at the moment. Only partial patches have been merged, still more patches have to be merged for pcie to fully work. The following repo is availabl