|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V11 3/8] Introduce XenHostPCIDevice to access a pci device on the host.
On 16/05/12 12:24, Konrad Rzeszutek Wilk wrote: On Tue, Apr 03, 2012 at 04:32:38PM +0100, Anthony PERARD wrote:Signed-off-by: Anthony PERARD<anthony.perard@xxxxxxxxxx>Looks good, thought I've just couple of tiny comments:+#define XEN_HOST_PCI_RESSOURCE_BUFFER_SIZE 512You might want a comment explaining why 512, and not a more precise number like 741. Actually, I only need the first 7 line of the resources file. So this is 399 bytes. I just add a little bit more.
I just define more than needed, and 42 is a good number :-).But the maximum I need is probably 7 (for example '0x8086\n', for a vendor id). Or 20, number of digit in LONG_MAX, base 10.
-- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |