Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-21 Thread Simon Martin
Hello Konrad and Jan, > There was a bug in Xen pcibackend that I thought I upstreamed which could > be releated. It was not restoring the right registers to the PCI-device. > They are attached. Thanks for the patches, however I have been finding some very interesting things. I decided to keep

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-19 Thread Simon Martin
Hello Jan and Konrad, Tuesday, November 18, 2014, 1:49:13 PM, you wrote: >> >> I've just checked this with lspci. I see that the IO is being enabled. > Memory you mean. Yes. Sorry. >> Any other idea on why I might be reading back 0xff for all PCI >> memory area reads? The lspci output

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-18 Thread Simon Martin
Hello Konrad, Thursday, November 13, 2014, 4:29:15 PM, you wrote: > On Thu, Nov 13, 2014 at 04:21:48PM -0300, Simon Martin wrote: >> Thanks Konrad, >> >> Thursday, November 13, 2014, 4:03:38 PM, you wrote: >> >> >> Yes I do verify the write. How do I

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-18 Thread Simon Martin
Hello Jan, Friday, November 14, 2014, 5:27:36 AM, you wrote: >>> I implied your earlier statement to mean that. But - did you also >>> verify that the three flags actually end up set (ideally from both >>> DomU and Dom0 perspective)? The PCI backend may be screwing >>> up things... >> >> Yes I d

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-13 Thread Simon Martin
Thanks Konrad, Thursday, November 13, 2014, 4:03:38 PM, you wrote: >> Yes I do verify the write. How do I check this from Dom0? > You can crank up the debug volume in xen-pciback. Recompile the kernel > and put '#define DEBUG 1' at the start of the .c files. > Interestingly enough I saw this is

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-13 Thread Simon Martin
Hello Jan, >> >> Yes, the first thing I do in the driver is set the PCI configuration >> access bits to 7 that should enable IO space, Memory Space and Master >> BUS access. >> >> As a test I disabled this and all reads to the PCI device return -1, >> even the first one. > I implied your ea

Re: [Xen-devel] Problems accessing passthrough PCI device

2014-11-13 Thread Simon Martin
Thanks Jan, Thursday, November 13, 2014, 11:08:33 AM, you wrote: On 13.11.14 at 14:29, wrote: >> I am having 2 major problems at the moment. >> >> 1.- Access to the PCI device from the PV will fail the second time I >> create it UNLESS I call xl pci-assignable-remove/pci-assignable-add >>

[Xen-devel] Problems accessing passthrough PCI device

2014-11-13 Thread Simon Martin
Hi all, I am back on my virtual machine once again and have run into a bit of a problem (once again). So I am coming to you cap in hand... I am having 2 major problems at the moment. 1.- Access to the PCI device from the PV will fail the second time I create it UNLESS I call xl pci-assignable-re