vpci/msi: add MSI 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:24:43 +0000 (10:24 +0100)
commit6ebf083f9ea4e5fa66d741e948e79db8a48da58d
tree7ae5332a2158f1fbf703c7acbef501d64d9b71c2
parent8c97eb6551f2942a634483ecefdf0e7978ae50e1
vpci/msi: add MSI handlers

Add handlers for the MSI control, address, data and mask fields in
order to detect accesses to them and setup the interrupts as requested
by the guest.

Note that the pending register is not trapped, and the guest can
freely read/write to it.

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/vmsi.c
xen/arch/x86/msi.c
xen/drivers/vpci/Makefile
xen/drivers/vpci/msi.c [new file with mode: 0644]
xen/drivers/vpci/vpci.c
xen/include/asm-x86/hvm/io.h
xen/include/asm-x86/msi.h
xen/include/xen/irq.h
xen/include/xen/vpci.h