|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [XEN][RFC PATCH 03/15] hvm-pci: Handle PCI config space in Xen
On 03/23/2012 08:29 AM, Jan Beulich wrote: Is there a reasonably low enforced boundary on the number of devices? Otherwise, a linear lookup would seem overly simple to me. The maximum of bdf is 2^16 => 65536. Which kind of structure do you advice ? Array ? Hash Table ? Further, with how PCI_CMP_BDF() is defined, you're doing the wrong thing here anyway - bit 31 is required to be set for the port CFC access to be a config space one. Plus there's an AMD extension to this interface, so I think other than shifting out the low 8 bits and checking that the high bit is set, you shouldn't do any other masking here. Actually in config address register the 24-30 bits are reserved. So, do I need to mask it ? Moreover what is the AMD extension ? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |