]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
fix offset of MSI-X memory mapped table.
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 5 Sep 2008 09:32:49 +0000 (10:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 5 Sep 2008 09:33:57 +0000 (10:33 +0100)
commit0dd77a196931380c2588f83ed662e8826cfde9b2
treed0c3c3272c833d9768d739c9e60c025066ae76eb
parentbe7277d93e3e417188b076fa78085284593fc317
fix offset of MSI-X memory mapped table.

This patch fixes offset of MSI-X memory mapped table.

Current code does not set dev->msix->table_off variable.
The offset of MSI-X memory mapped table is treated as 0.
The wrong region is unmapped from guest physical memory space.
As a result, guest device driver can't access memory mapped resource.

The patch fixes this issue. My MegaRAID SAS assigned to guest domain
becomes working with the patch.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
(cherry picked from commit 5c3b16ef00b18d0c43574060ef124b4c52b2e998)
hw/pt-msi.c