[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] pt_pci_read_config offset issue


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Rolu <rolu@xxxxxxxx>
  • Date: Mon, 25 Jun 2012 00:23:32 +0200
  • Delivery-date: Sun, 24 Jun 2012 22:24:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Using Xen 4.2 unstable rev. 25483.

I get errors like this:

pt_pci_read_config: [00:10:0] Error: Failed to read register with
offset exceeding FFh. [Offset:ffh][Length:1]

in my qemu log for a domU with some devices passed through to it.

I investigated and found that at hw/pass-through.c line 1717
(http://xenbits.xen.org/gitweb/?p=qemu-xen-unstable.git;a=blob;f=hw/pass-through.c;h=8581253bc86391d6e348e02464f9ed5d2e579a0d;hb=HEAD#l1717)
the code checks for an address >= 0xFF and then throws the above
error. This seems wrong. The PCI configuration space is 256 bytes long
(as far as I've seen anyway) so reading one byte at offset 0xFF should
work and return the very last byte.

pt_pci_write_config has the same code.

Is the check wrong and should it be address > 0xFF?
Or am I missing something?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.