]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commit
qemu: clean up MSI-X table handling
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 22 Dec 2011 14:46:31 +0000 (14:46 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 22 Dec 2011 14:46:31 +0000 (14:46 +0000)
commit56d7747a3cf811910c4cf865e1ebcb8b82502005
tree6744a6dd6aea065e26439b961a739234fdc2f6a6
parent54e24021005458ad0a361c1d83011b751726a94b
qemu: clean up MSI-X table handling

This patch does cleaning up of QEMU MSI handling. The fixes are:
1. Changes made to MSI-X table mapping handling to eliminate the small
windows in which guest could have access to physical MSI-X table.
2. MSI-X table is mapped as read-only to QEMU, as masking of MSI-X is
already in Xen now.
3. For registers that coexists inside the MSI-X table (this could be
only PBA I think), value read from physical page would be returned.

Signed-off-by: Shan Haitao <maillists.shan@gmail.com>
Consolidated duplicate code into _pt_iomem_helper(). Fixed formatting.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Haitao Shan <haitao.shan@intel.com>
Acked-by: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
hw/pass-through.c
hw/pt-msi.c
hw/pt-msi.h