]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commit
hw/pass-through.c: workaround for old libpci
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Feb 2009 16:16:06 +0000 (16:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Feb 2009 16:16:06 +0000 (16:16 +0000)
commitb80fc65b715099ee28465f6571eb5242588ef246
treea58779a851bf03a67d60e19156fade3a7ade56df
parent324a1617a496ffc222a339f2c0f70e73bdc53658
hw/pass-through.c: workaround for old libpci

Old versions of libpci (including the ones on the automatic tests
which control Xen staging propagation) do not define
PCI_LIB_VERSION or the PCI_ERR_{UNCOR_MASK,...} constants.

This means that change 8c771eb6294afc5b3754a9e3de51568d4e5986c2 breaks
the build.  In this changeset I apply what is intended to be a
workaround for this problem but it may not be completely correct; this
is therefore perhaps an interim fix.

The potential problem is that the save/restore of some PCI passthrough
error handling registers (across suspend/resume) may not work properly
with old versions of libpci.  However non-passthrough and non-suspect
use cases should now be fine.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/pass-through.c