ioemu: fix libpci error handling.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:53:05 +0000 (09:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:53:05 +0000 (09:53 +0100)
commit37404be82b7448a4fb0d3136a65fc2421a33f8bc
tree3bb45e4a5b6245216b2b381f08049d2eec662acc
parent02c55540b888f82b2f14497c107eefa2a116942e
ioemu: fix libpci error handling.

libpci returns ALL F when error occurs. Currently, if libpci returns
ALL F, emulation stops. But it is possible that the field of real register
which is read by guest software is ALL F.

After applying this patch, if libpci returns ALL F, ioemu will log
warning message and continue the emulation.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
tools/ioemu/hw/pass-through.c