memory: Add IOMMUTLBEvent
commit5039caf3c449c49e625d34e134463260cf8e00e0
authorEugenio Pérez <eperezma@redhat.com>
Mon, 16 Nov 2020 16:55:03 +0000 (16 17:55 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2020 18:48:57 +0000 (8 13:48 -0500)
tree54734bddbe00a28bd9582228ff0ab9e893267d9a
parent3b5ebf8532afdc1518bd8b0961ed802bc3f5f07c
memory: Add IOMMUTLBEvent

This way we can tell between regular IOMMUTLBEntry (entry of IOMMU
hardware) and notifications.

In the notifications, we set explicitly if it is a MAPs or an UNMAP,
instead of trusting in entry permissions to differentiate them.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20201116165506.31315-3-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
hw/arm/smmu-common.c
hw/arm/smmuv3.c
hw/i386/intel_iommu.c
hw/misc/tz-mpc.c
hw/ppc/spapr_iommu.c
hw/s390x/s390-pci-inst.c
hw/virtio/virtio-iommu.c
include/exec/memory.h
softmmu/memory.c