xl: fix PCI resource parsing
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 07:10:48 +0000 (08:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 07:10:48 +0000 (08:10 +0100)
commitc53944ad66f9be3d512926227469d6d921f1f3f7
tree9de12da0ae9314d54a2cb30e1e5ba6d578d77527
parent9cdfe48f9a57b3a929871b69eeb5aae84260b1ab
xl: fix PCI resource parsing

The parsing of PCI resources has two problems:

   1. it assumes devices are 32-bits, whereas the fields in the
      "resources" file can have full 64-bit values
   2. it only parses the first resource because the format string is
      missing a \n

Fix both of these up, which allows my Intel 82574L to work with MSI-X.

However, this should probably be using a PCI access library rather
than rummaging around in /sys/bus/pci...

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
tools/libxl/libxl.c