]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commit
qemu-xen-trad: fix msi_translate with PV event delivery
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 30 Aug 2012 15:11:32 +0000 (16:11 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 30 Aug 2012 15:11:32 +0000 (16:11 +0100)
commit3e66da7266c84638c0e22a09c9d2b07529802576
treefc4ae378978f9e1936a5d80594eb9147c1d4032e
parenteffd5676225761abdab90becac519716515c3be4
qemu-xen-trad: fix msi_translate with PV event delivery

When switching from msitranslate to straight msi we need to make sure
that we respect PV event delivery for the msi if the guest asked for it:

- completely disable MSI on the device in pt_disable_msi_translate;
- then enable MSI again (pt_msi_setup), mapping the correct pirq to it.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Rolu <rolu@roce.org>
hw/pass-through.c
hw/pt-msi.c