OSDN Git Service

memory: Add interface to set iommu page size mask
authorBharat Bhushan <bbhushan2@marvell.com>
Fri, 30 Oct 2020 18:05:07 +0000 (19:05 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 12:19:27 +0000 (07:19 -0500)
commit457f8cbbd80f631cee02057c3c844a43ca65b5c4
tree23fea6608b60d057ca3c2e6c7a3fbf38fa337bd0
parent6978bfaa688df55dc9ea581fe32b226f81aebc3a
memory: Add interface to set iommu page size mask

Allow to set the page size mask supported by an iommu memory region.
This enables a vIOMMU to communicate the page size granule supported by
an assigned device, on hosts that use page sizes greater than 4kB.

Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20201030180510.747225-8-jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/exec/memory.h
softmmu/memory.c