mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
c3bdc56c18
commit
38d40ff10f
4 changed files with 13 additions and 3 deletions
|
@ -443,8 +443,7 @@ void msix_notify(PCIDevice *dev, unsigned vector)
|
|||
|
||||
msg = msix_get_message(dev, vector);
|
||||
|
||||
address_space_stl_le(&dev->bus_master_as, msg.address, msg.data,
|
||||
MEMTXATTRS_UNSPECIFIED, NULL);
|
||||
msi_send_message(dev, msg);
|
||||
}
|
||||
|
||||
void msix_reset(PCIDevice *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue