]> xenbits.xensource.com Git - xenclient/ioemu.git/commit
Contain MSI errors in msi emulation code
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 13 Jan 2009 11:28:04 +0000 (11:28 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 13 Jan 2009 11:28:04 +0000 (11:28 +0000)
commit6052cb980abc07b8ec5596ccf543258638c67bc6
treea45a513fd3ae138e5d601b8659ecf47dd72f318f
parentb6f70ccc67868e671bfcb4d2012fb67f0d49ef7a
Contain MSI errors in msi emulation code

If msi=0 is specified and guest want to enable msi, qemu finds it can
not enable it and quits.  (This problem is not appicable for xen
unstable since the "msi=x" switch is removed.)  This patch let these
cases be handled inside msi emulation code. If qemu can not enable
msi, guest will not receive MSI.  But Qemu can still go on.  But if
guest driver does not test MSI's functionality, guest device will stop
to function.

Submitted-By: Haitao Shan
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit 35f55c5b0b54e310c787c39bde0f723a1390e839)

Cherry pick requested by Dexuan Cui:
 In the latest Xen-unstable, MSI in xen was disabled temporarily and
 many guests with MSI-capable NIC assigned fail to bootup.  Could you
 please pull the following commit of qemu-xen-3.3-testing.git into
 qemu-xen-unstable.git?

Conflicts:
hw/pass-through.c
hw/pass-through.c