vpci/msix: add MSI-X handlers
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 22 Mar 2018 14:00:00 +0000 (15:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Mar 2018 09:26:06 +0000 (10:26 +0100)
commitd6281be9d01456a5989daa4eb2eccd718d73857d
tree6f470ec73768c36d5914c292918191194c0a2c00
parent2be6e8d3d10e188f69c8971842d5a5369b9f264f
vpci/msix: add MSI-X handlers

Add handlers for accesses to the MSI-X message control field on the
PCI configuration space, and traps for accesses to the memory region
that contains the MSI-X table and PBA. This traps detect attempts from
the guest to configure MSI-X interrupts and properly sets them up.

Note that accesses to the Table Offset, Table BIR, PBA Offset and PBA
BIR are not trapped by Xen at the moment.

Finally, turn the panic in the Dom0 PVH builder into a warning.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
[IO]
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/dom0_build.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmsi.c
xen/drivers/vpci/Makefile
xen/drivers/vpci/header.c
xen/drivers/vpci/msi.c
xen/drivers/vpci/msix.c [new file with mode: 0644]
xen/drivers/vpci/vpci.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/io.h
xen/include/xen/vpci.h