Add stream ID to MSI write
commit38d40ff10f71657ea913a63d1f8477be368b92c1
authorPavel Fedin <p.fedin@samsung.com>
Wed, 27 May 2015 12:59:59 +0000 (27 15:59 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 31 May 2015 18:29:02 +0000 (31 20:29 +0200)
tree37afaace244c657ced80784054cea6c66c61e885
parentc3bdc56c183f6ca6baa502bd7861583ca98b333b
Add stream ID to MSI write

GICv3 ITS distinguishes between devices by using hardwired device IDs passed on the bus.
This patch implements passing these IDs in qemu.
SMMU is also known to use stream IDs, therefore this addition can also be useful for
implementing platforms with SMMU.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
 Changes from v1:
- Added bus number to the stream ID
- Added stream ID not only to MSI-X, but also to plain MSI. Some common code was made into
msi_send_message() function.
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/msi.c
hw/pci/msix.c
include/exec/memattrs.h
include/hw/pci/msi.h